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

romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-4] matching displayed colors between CSS colors and images when those colors are outside the displayable gamut ==
see : https://github.com/w3c/csswg-drafts/issues/9449

@ccameron-chromium said:

> This https://github.com/w3c/csswg-drafts/issues/7610#issuecomment-1216700728 the ability to color match between CSS colors and images. Why is it okay to break this functionality? Is there a way that we can avoid breaking this?

I think there is a lot of nuance missing from this statement.
In particular that all colors inside the displayable gamut would still match between CSS and images.

But I agree that having the ability to color match between various features is important to at least some users.

--------

Do users have the needed knobs and dials today to effectively color match between images and CSS colors?

I think they actually already do with the `color-gamut` media query:
- can be used to pick specific CSS colors
- can be used to load specific images

It is an involved process, not something that falls out naturally.
But it is possible.

-------

An even smaller group of users might want to match colors that are outside the displayable gamut. (e.g. matching midpoints of interpolations in `oklch` to an image)

Maybe there should be an opt-out for gamut mapping in CSS?
This could be a keyword on a property that limits overal gamut mapping, see : https://github.com/w3c/csswg-drafts/issues/10038

The resulting colors would be clipped values and would be objectively bad, but might be what the other wants.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10055 using your GitHub account


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

Received on Sunday, 10 March 2024 12:21:12 UTC