Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-images-4] Should gradients even interpolate? #6569

Open
tabatkins opened this issue Sep 1, 2021 · 1 comment
Open

[css-images-4] Should gradients even interpolate? #6569

tabatkins opened this issue Sep 1, 2021 · 1 comment

Comments

@tabatkins
Copy link
Member

In Images 4, smart interpolation of gradients is defined: https://drafts.csswg.org/css-images-4/#interpolating-gradients. This spec text has been around for several years, but afaik has never been implemented; browsers instead just interpolate gradients as generic images (cross-fading them).

We just agreed (in #1332 (comment)) to add easing functions as <color-stop-hint>s, which would involve some more involved edits here - we'll have to define how to interpolate easing functions. That's not a difficult thing, but it's still work, and if UAs don't expect to actually implement smart gradient interpolation, I'd rather avoid doing that.

So, question to implementors: is there any intention to actually implement the smart gradient interpolation? Or should we give up on it and define that gradients interpolate as generic images?

(tagging @dino because they brought it up in the call)

@dlibby-
Copy link
Contributor

dlibby- commented Sep 2, 2021

Tagging @ogerchikov as well, her team has looked into adding support for this to Chromium in the past. I'm not sure the current status though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants