Re: [csswg-drafts] [css-color-4] Channel clipping breaks author expectations, especially when using 'perceptually uniform' spaces (#9449)

> I'm still not quite sure how a wider gamut can have such a disparity in lightness. If we attempt a very magenta color in display-p3 and crank up the lightness until we are around 90% (with no gamut mapping required), we get a pale color, because it is so bright!

This is indeed happens when cranking up L in an HSL-like space like `okhsl`.

But in `oklch`, the math works out that we don't become more pale -- we keep the saturation while increasing brightness. The way that this image was produced was to expand the top of the gamut beyond `#FFFFFF`. This This animation might help to show what's happening. The point on the left is the point that is specified, but it's far outside of the gamut. As we extend the dynamic range, it comes to fall within the extended gamut.

![ezgif-1-5b7356f2c6](https://github.com/w3c/csswg-drafts/assets/32557109/8cfb2e86-ff93-472d-bed9-45fff6bef8f0)



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


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

Received on Wednesday, 6 March 2024 17:55:51 UTC