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

> When gradients and animations use lab()/lch() colors, should the gradient/animation interpolate in the lab() colorspace?

Ideally, yes. But they won't by default, because then the second half of a gradient from 

1. some Lab color
2. an sRGB color
3. another sRGB color

would be different in implementations that support `lab()` and `lch()`. So for webcompat, the default needs to be sRGB as at present.

> IsnĘžt this just #300 reloaded?

Yes.

>  I don't think authors should have to opt the entire page into a working lab colorspace to get this.

I agree, which is why a per-element working colorspace, rather than a brute force all-or-nothing working colorspace for the whole page, is more flexible and author friendly.

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

Received on Monday, 6 January 2020 11:23:30 UTC