Re: [csswg-drafts] [css-color-4] matching displayed colors between CSS colors and images when those colors are outside the displayable gamut (#10055)

> I am not sure how we are misunderstanding each other here :)
> 
> I am reading :
> 
> If you care about color accuracy then you should create tailored assets and use the media query to conditionally load the correct asset. Do not leave it up to automatic color matching as it isn't guaranteed to be identical across platforms, hardware, ...
> 
> Is this an incorrect interpretation, if so, how?

I think I agree, but I want to make sure I'm being as precise as possible.

My understanding of what is being written is:

* If one wants an exact and known appearance, then keep all color values (in CSS, images, videos, canvas) near the gamut reported by `color-gamut`. 
  * That's because the rendition of color values outside color gamut of the screen are affected by the browser implementation, operating system, hardware, and other things.
* Each color value, regardless of how it is specified (CSS, image, video, canvas), and regardless of whether it is in the gamut of the display or not, will always map to exactly one color on the screen.
  * Therefore it is not the case that a color value will map to one color on the screen when specified as CSS and a different color on the screen when specified in an image.
  * This what I mean by "color matching will always be respected"


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


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

Received on Friday, 22 March 2024 11:34:20 UTC