-
Notifications
You must be signed in to change notification settings - Fork 746
Description
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)
Safari :
oklch(0.72600687 0.15660721 177.02602)
Specification :
oklch(72.601% 0.15661 264.052)
What I think it should actually be :
oklch(72.601% 0.31321 264.052)
I think we are seeing the same implementation issues as in :
- [css-color-4] Inconsistent results with
none
and interpolation color spaces. #8563 - [css-color-4] Spec isn't clear whether powerless check or carryover check is done first #8602
But this might require different specification and test edits to resolve.