Re: [csswg-drafts] [css-animations] Add control of colorspace used for animating colors (#7062)

> Is there a need to interpolate in a different colorspace per transition/animation?

Yes. For maximal Web compat, existing animations need to continue to animate in gamma-encodes sRGB space; yet animations using other, wider gamut color spaces would be severely hampered by being forced to do so.

Also, stylesheet authors may choose to use different colorspaces on different animations or transitions depending on the effect they want to achieve.

> I'm afraid this still hits the issue where we can't easily add new keywords to the animation shorthand as discussed in https://github.com/w3c/csswg-drafts/issues/6946.

So, this means that authors would need to use the animation shorthand to set most of the animation, then a longhand to set the animation colorspace?

> If it's the former, then this will need to be defined at the Web Animations level and mapped to corresponding properties in CSS animations/transitions.

Could you unpack that a bit more for me, so I have a clearer idea of what to do next?

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


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

Received on Thursday, 17 February 2022 18:39:28 UTC