You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We see that animation-timing-function allows cubic-bezier coordinates to be minified, while the same value assigned to a custom property isn’t.
animation-timing-function:cubic-bezier(.485,.045,.545,.97); /* leading zero removed ✅ */--cp:cubic-bezier(0.485,0.045,0.545,0.97); /* leading zero not removed ❌ */
My expectation for assigning such a timing-function to a custom property would be that it should be minified.
, if I remember correctly it is because in general it is not possible to determine from the CSS property declaration whether the transformation will be correct where the CSS property is actually used. Maybe in this specific case the transformations would be safe, but from issues we've had in the past I think it's better to think twice before transforming a CSS property.
Describe the bug
Leading zero is not stripped from
cubic-bezier
functions assigned to custom properties.Maybe there’s some proximity with #1456.
Expected behaviour
The following
minifies to
We see that
animation-timing-function
allowscubic-bezier
coordinates to be minified, while the same value assigned to a custom property isn’t.My expectation for assigning such a timing-function to a custom property would be that it should be minified.
Steps to reproduce
CSS Nano playground link
Version
6.0.0
Preset
(no preset)
Environment
Package details
Additional context
No response
The text was updated successfully, but these errors were encountered: