Open graouts opened 2 years ago
Cc @andruud who authored this test.
I do see this other spec text in the animation behavior section of CSS Properties and Values API Level 1:
When referenced by animations and transitions, custom property values interpolate by computed value, in accordance with the type that they parsed as.
That seems to me to be in contradiction with the previously-cited specification.
However, that seems to be more in line with what an author would expect, it would make sense that a custom property defined as a <length>
is animatable. It seems to me like it should be possible to let the author define that property as discrete still for cases where a value does not make sense to animate.
Yeah, this is intentional. Registered custom properties (can) get a non-discrete animation type.
The test css/css-animations/animation-important-001.html assumes that custom properties interpolate non-discretely. For instance:
But the CSS Custom Properties for Cascading Variables Module Level 1 specification clearly states "Animation type: discrete".
This would mean that the assertion above is incorrect and that it should be
200px
.