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

To answer another question, I don't think `color()` should keep multiple values as potentially-active at the same time. This is not what the spec says, and this is not desirable. If you put a `color()` in a `color-mix()` and that because of that one of the value that the color had which was out of gamut is now in gamut after the mix, you still do not want to use that color anyway. Indeed, the whole point of the color mix is to mix two colors, each of which might be used on the page. Switching to another item of the color fallback list in the middle of a color mix would cause a discontinuity, which is not what an author would want. The behavior described in the spec is that `color()` decides which color to use, then sticks to it. For the purpose of anything using `color()` the fallback list is not considered, there is only one value, which is the one that `color()` resolved to.

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


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

Received on Wednesday, 3 March 2021 11:29:14 UTC