Re: [csswg-drafts] [css-color-4] Expected behavior around lightness 0 or 100% in Oklab/Oklch/Lab/LCH? (#10109)

That the spec is clear doesn't by itself solve the problem at hand. `oklab(1 0.25 0)` describes a bright pink color. Assuming sRGB, what do we get?

- The spec says `oklab(1 0 0)` as an effect of gamut mapping
- Chrome gets `oklab(1 0 0)` because lightness 100% is special cased
- Firefox and Safari get roughly `oklab(0.85 0.12 -0.07)` due to channel clipping

The answers are different just below 100%, for `oklab(0.99 0.25 0)`:

- The spec says `oklab(0.99 0 0)` as an effect of gamut mapping
- Chrome, Firefox and Safari get roughly `oklab(0.84 0.12 -0.07)` due to channel clipping

How do we get out of this situation?

-- 
GitHub Notification of comment by foolip
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10109#issuecomment-2014978676 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 22 March 2024 12:30:46 UTC