Re: [csswg-drafts] [css-color-4] Do gradients/animations using lab/lch colors interpolate in the Lab colorspace? (#4647)

Since no one's brought it up yet:

[SVG 1 defined a `color-interpolation` property](https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationProperty), which would affect how gradients and animations would interpolate (and was also supposed to affect compositing, and some other operations). Implementations are inconsistent currently in what it *does* affect. There is discussion about removing some or all of the definition from SVG 2, in https://github.com/w3c/svgwg/issues/366

The SVG `color-interpolation` accepts two options, `sRGB` and `linearRGB` (RGB without any gamma correcting, just linearly interpolate the values in the `rgb()` vector), plus an `auto` option. But it could logically be extended to include other color spaces, including lab/lch.

But…

This would be a “per element” setting, not a “per operation” setting, and as Lea mentioned, this may be too coarse for some authors: changing the setting for one thing (e.g., a gradient) could have unanticipated side effects. Either way, we'd need clearer definitions of what the property affected.


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

Received on Wednesday, 8 January 2020 17:04:47 UTC