Open Bug 1885995 Opened 11 months ago

[css-properties-values-api] is_discrete_animatable should be more granular for custom properties

Categories

(Core :: CSS Transitions and Animations, enhancement)

enhancement

Tracking

()

People

(Reporter: zrhoffman, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1846516, all custom property types were said to be discretely animatable <https://searchfox.org/mozilla-central/rev/529f04f4cd2a/servo/components/style/properties/mod.rs#1043-1044>, which mostly works for discrete animation, for non-transition interpolation, and for discrete transitions.

However, for interpolating custom properties in transitions, if all custom properties are said to be discretely animatable, those custom properties cannot also be said to be transitionable without additional logic being added <https://searchfox.org/mozilla-central/rev/529f04f4cd2a/servo/ports/geckolib/glue.rs#1216>.

Instead, registered custom property types that can interpolate should return false for is_discrete_animatable.

You need to log in before you can comment on or make changes to this bug.