Skip to content

[css-color-6] contrast-color() and gamut mapping #8539

@danburzo

Description

@danburzo

Some color syntaxes allow out-of-gamut colors that are retained as-is until they're ultimately gamut-mapped for display. Examples include rgb(2 2 2) and color(srgb 2 2 2). Luminance contrast computation should ideally reflect the contrast of the colors being displayed.

To that end, I believe the CIE Y Luminance could be clamped to [0, 1] in the computation of wcag2 contrast, and other contrast keywords / functions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions