Re: [csswg-drafts] [css-color-5] What should the behavior of the CSS Color 5 color functions be when passed `currentcolor` as <color> (#6168)

FWIW, in Gecko we resolve all colors at computed value time to a mix of currentcolor and a foreground color (like [this](https://searchfox.org/mozilla-central/rev/9043e515e9608cc55b252a40cb2dfb6f767bcffd/servo/components/style/values/generics/color.rs#7-40)). That allows us to resolve the functions at computed-value time. So my implementation of `color-mix()` also computes to the resolved color.

I think that's generally preferable as I'd rather not do a lot of color mixing during rendering for every element if we can do it once and let it inherit through.

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


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

Received on Wednesday, 31 March 2021 17:08:46 UTC