-
-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: leading zero not removed for timing functions assigned to custom property #1488
Labels
Comments
meduzen
changed the title
[Bug]:
[Bug]: leading zero not removed for timing functions assigned to custom property
Apr 7, 2023
At the moment, postcss-convert-values skips all transformations when it encounters a CSS property:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: