8000 [css-color-4] [css-color-5] inconsistent mentions of powerless components in `white`. · Issue #8609 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-color-4] [css-color-5] inconsistent mentions of powerless components in white. #8609

@romainmenke

Description

@romainmenke

https://drafts.csswg.org/css-color-4/#specifying-oklab-oklch

If the lightness of an Oklch color is 0% or 0, or 100% or 1.0, both the hue and chroma components are powerless.

So white should be equivalent to oklch(100% none none).

https://drafts.csswg.org/css-color-5/#ex-mix-blue-white

Example 6
white is rgb(100% 100% 100%) which is lch(100% 0 none) which is oklch(100% 0 none)
blue is rgb(0% 0% 100%) which is lch(29.5683% 131.201 301.364) which is oklch(45.201% 0.31321 264.052)

When mixing in oklch: color-mix(in oklch, white, blue);


Chrome :

oklch(0.725987 0.15663 323.92)

Screenshot 2023-03-17 at 22 51 53

Safari :

oklch(0.72600687 0.15660721 177.02602)

Screenshot 2023-03-17 at 22 52 19

Specification :

oklch(72.601% 0.15661 264.052)

Screenshot 2023-03-17 at 22 57 15

What I think it should actually be :

oklch(72.601% 0.31321 264.052)

Screenshot 2023-03-17 at 22 57 44


I think we are seeing the same implementation issues as in :

But this might require different specification and test edits to resolve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0