Re: [csswg-drafts] [css-animations][css-transitions][web-animations] Introduce a host-syntax for color interpolation (#7741)

Right, we need to add a [`<color-interpolation-method> `](https://www.w3.org/TR/css-color-4/#color-interpolation-method) to the grammar for those.

> and possibly also specify if the default interpolation space depends on which color space the endpoints or keyframe values are specified in.

I think that is [already covered](https://www.w3.org/TR/css-color-4/#color-interpolation-method):

> If the host syntax does not define what color space interpolation should take place in, it defaults to OKLab.

> However, user agents may handle interpolation between legacy sRGB color formats (hex colors, named colors, [rgb()](https://www.w3.org/TR/css-color-4/#funcdef-rgb), [hsl()](https://www.w3.org/TR/css-color-4/#funcdef-hsl) or [hwb()](https://www.w3.org/TR/css-color-4/#funcdef-hwb) and the equivalent alpha-including forms) in gamma-encoded sRGB space. This provides Web compatibility; legacy sRGB content interpolates in the sRGB space by default.

> This also means that authors can choose to opt-in to better interpolation, even between sRGB colors, by using the non-legacy color(srgb r g b) form for at least one of their colors.

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


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

Received on Wednesday, 14 September 2022 15:40:33 UTC