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

If I recall correctly it should actually be displayed equivalent to `linear-gradient(to right, black, oklab(0.5 0.15 0.15), white)`

Linear interpolation between `oklab(0 0.15 0.15)` and `oklab(1 0.15 0.15)` is `oklab(0.5 0.15 0.15)` It is not `oklab(0.5 0 0)`.

`oklab(0 0.15 0.15)` is only displayed as black as a result of gamut mapping.
It is not interpolated as if it were black.

If correct, then it would be good to add this to the examples.
Best if confirmed by others.

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


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

Received on Thursday, 21 March 2024 10:07:33 UTC