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

> This was something that I wanted to get into more in the discussion (it's in the slides), but didn't. Chroma reduction isn't acceptable for images and videos and canvases (I think this is generally agreed upon),

I don't disagree with image and video handling, etc. They are all already within their gamut, and most people just want to the colors to be similar. This is a specific use case.

>  but it also severely violates the meaning of CSS colors. As an example, this is the true L=1 plane of oklch, darkened so that you can see its intersection with the P3 gamut on a normal display.

It doesn't severely violate the meaning of CSS colors. You can make an argument that all forms of gamut mapping violate the meaning of colors depending on what attribute you focus on. I think chroma reduction retains quite a lot of the meaning of the colors, hue and lightness. Clipping focuses on having similar colorfulness and a hue  in the ballpark.

There are plenty of use cases where gamut mapping by preserving lightness is desirable, tones and providing "better" contrast when mixing or creating gradients. I won't make a claim that it will give you perfect contrast, but it will be better. These aren't invalid, and desiring them doesn't invalidate the meaning of colors. It is simply a different use case.

So what are the goals of CSS colors? Not images or videos, but CSS colors? That's the real question.







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


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

Received on Thursday, 28 March 2024 16:37:30 UTC