Re: [csswg-drafts] [css-color-5] Consider always requiring a colorspace argument to color-mix() (#6051)

Yeah, requiring a color space also avoids deciding what the right default should be. I'd note that colors-4 [says](https://drafts.csswg.org/css-color-4/#interpolation-space) that:

> The exception is that if all the <color>s to be interpolated are sRGB values, and they are all expressed in a legacy syntax such as hex colors, named colors, rgb(), hsl() or hwb() (and the equivalent alpha-including forms) then they are interpolated in gamma-encoded sRGB space.

It's not clear which of the two defaults wins here, and personally I think it'd be a bit weird if `color-mix(a, b)` behaved differently than regular animations and transitions.

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


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

Received on Monday, 1 March 2021 20:19:17 UTC