Re: [csswg-drafts] [css-color-4] Concerns about color() function fallback (#5931)

> wondering if that burden is warranted given the existing ability for authors to specify colors based destination gamut using media queries

IMHO the `color()` function is more useful than the `color-gamut` media feature, as it operates in-place with a specific color; otherwise one may have to repeat some selectors in different media queries (with the maintenance burden for the CSS author), and cannot really be sure about a specific color belonging to the "approximate" gamut represented by that media feature.

Quoting from the MQ4/5 spec: "In most cases the author does not need to know the exact capabilities of the display, just whether it is better than sRGB, or significantly better than sRGB".

However, I share your concerns about its usage in `color-mix()` and `color-adjust()`: an in-gamut color may become out-of-gamut (or vice-versa) after the mix/adjust.

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


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

Received on Sunday, 7 February 2021 15:39:47 UTC