Re: [csswg-drafts] [css-color-4] Disagreements over gamut mapping (#7610)

> Yes, this highlights an important issue.
> 
> Should someone creating content specify colors (significantly) outside of the capabilities of the device on which they are authoring content? Encouraging that strikes me as a bad idea -- the author is making content without knowing what it actually looks like. Just in the above example, the color(p3 1 0 0) gamut-mapped to sRGB looks is less-saturated than srgb(1 0 0), which is the opposite of what actually happens when it is rendered on an a P3 display.

Colors are not always specified manually, they are often generated, either via script, or user input (on another machine!), or CSS color modification functions, or interpolation etc.

> The parameterization and interpolation of LCH is highly desirable. The ability to swing wildly out of gamut isn't. What about the following compromise: take away LCH, and replace it with something like LCH-P3, with gamut mapping to P3 baked in?

sRGB seemed plenty enough back in the 90s. Can we please not repeat the same mistake, just with P3 this time? We cannot be solving the same problems every few years.

Also, I'm not sure what you mean by "The parameterization and interpolation of LCH is highly desirable". The advantage of LCH (and OKLCH) is perceptual uniformity. I'm not sure how your proposed LCH-P3 would maintain that.

If you want to specify LCH colors that are constrained to the P3 gamut, you can do this already via [Relative Color Syntax](https://csswg.sesse.net/css-color-5/#relative-colors) once that deals with `color()` as well: `color(from lch(...) display-p3 r g b);` (or whatever the RCS syntax would look like for `color()`).

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


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

Received on Wednesday, 24 August 2022 16:48:16 UTC