Open
Bug 991950
Opened 11 years ago
Updated 1 year ago
custom properties ("css variables") should be animatable/transitionable with the "flip value at 50%" interpolation behaviour
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: heycam, Unassigned)
References
Details
The CSS Variables spec now says:
Custom properties are ordinary properties, so they can be declared on any element, are resolved with the normal inheritance and cascade rules, can be made conditional with @media and other conditional rules, can be used in HTML’s style attribute, can be read or set using the CSSOM, etc. Notably, they can even be transitioned or animated, but since the UA has no way to interpret their contents, they always use the "flips at 50%" behavior that is used for any other pair of values that can’t be intelligently interpolated.
So we should support animating them like this.
Comment 1•11 years ago
|
||
This is really more general, though, since we need to support this for all non-animatable properties.
Updated•8 years ago
|
Summary: custom properties should be animatable with the "flip value at 50%" interpolation behaviour → custom properties ("css variables") should be animatable/transitionable with the "flip value at 50%" interpolation behaviour
Comment 3•8 years ago
|
||
@dbaron Out of curiosity, do you plan to implement this for both known properties as well as unknown properties? For example, within transitions do you plan to make it so that it does a 50% flip rather than that of interpolating even though you know how to after substitution? Here's an example where Chrome/FF will interpolate a known property post variable substitution. http://jsbin.com/wumufepexo/edit?html,output
Updated•2 years ago
|
Severity: normal → S3
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•