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

Some questions to ponder for discussion at the F2F:

Question 1: Suppose an author has specified the color `oklch(90% 90% 0deg)`. What is the desired behavior? With reference to the [previous image](https://github.com/w3c/csswg-drafts/issues/9449#issuecomment-1929679581), is the desired behavior that on sRGB displays the viewer will see the second bar (`srgb(100% 79% 86%)`) but on some future display the viewer will see the truly specified color ("brilliant magenta")?

By desired behavior, we should address this both as "is this what the spec currently says should happen" versus "is this desirable behavior (regardless of the spec)".

Question 2: Suppose that the same color, `color(display-p3 1 0 0)` is specified in an image, in CSS, and in a canvas (2D, WebGL, or WebGPU). That page is then viewed on an sRGB display. Should the resulting color be the same for the image, the CSS, and the canvas?

Question 3: Suppose a page is authored on a wide color gamut display (say P3) and is then viewed on a narrow gamut display (say sRGB). The viewing operating system is capable of mapping the content to the display's capabilities (either by [SMPTE ST 2086](https://ieeexplore.ieee.org/document/8353899) or an ICC profile). Should the mapping of P3 to sRGB be done by the CSS algorithm or by the operating system?

There are several other issues that I'd like to discuss (especially with respect to the numerical properties of the specified algorithm), but might overrun the time we will have.

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


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

Received on Friday, 9 February 2024 14:21:00 UTC