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

> This is also something that users have been able to do forever with sRGB images. If an image is sRGB, then specifying that exact same pixel value as a CSS color has always produced an identical color. I don't think we should sweep away that functionality.

This is something we often do as well, and something that we would like to be able to do in the future. We _sometimes_ need to match colors across images, canvas, css and sometimes video. 

An example is when publishing editorial articles with graphical elements that has matching text-color, accent-color and/or background color across images, css and canvas elements. 

When we do, it would be nice if we could set the gamut-mapping being used on images and canvas so that out of display gamut colors do match. Not all images are photography, not all videos are “photographic”. 

This does not mean that the css gamut mapping should be the default setting on say images. Only that it would be useful for authors to control the gamut mapping used when images, canvas (or video) contain graphical elements and not “photography”. 

-- 
GitHub Notification of comment by johannesodland
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7610#issuecomment-1226073808 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 18:17:59 UTC