Re: [csswg-drafts] [css-color-4] (ok)lch implementations break the entire purpose for authors (#9449)

The same perceptual lightness shift is also present in (ok)lab. Here's a [Codepen demo](https://codepen.io/jamessw/pen/mdaopeZ?editors=1100) showing (ok)lab and (ok)lch with consistent lightness values, and changing only the `a` or `chroma` channels, respectively.

Ok(lab) bug reports-
- https://bugs.webkit.org/show_bug.cgi?id=261898
- https://bugs.chromium.org/p/chromium/issues/detail?id=1439722

Both these browser bug reports and in the issue description itself also talk about the separate but connected issue around powerless components. No browsers have implemented this portion of the spec (which is also present on LCH, Oklab, and Oklch specs).

`If the lightness of a Lab color is 0%, or 100% both the a and b components are [powerless](https://www.w3.org/TR/css-color-4/#powerless-color-component) and the color represents black, or white, respectively.`


These all should be black and white-

- [Lab](https://www.oddcontrast.com/#lab__lab(0_-67_-125)__lab(100_115_-125))
- [LCH](https://www.oddcontrast.com/#lch__lch(0_141.82_241.81)__lch(100_169.85_312.61))
- [Oklab](https://www.oddcontrast.com/#oklab__oklab(0~_-0.4_-0.4)__oklab(100~_0.287_-0.351))
- [Oklch](https://www.oddcontrast.com/#oklch__oklch(0_0.5657_225)__oklch(1_0.4535_309.26))

There is also related conversation here- https://github.com/w3c/csswg-drafts/issues/8794

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


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

Received on Wednesday, 11 October 2023 18:33:23 UTC