Skip to content

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

@tabatkins

Description

@tabatkins

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions