-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
CSS Compressor: Incorrect optimization for transition property #72
Comments
OK here looks like the original issue from the YUI Compressor: yui/yuicompressor#256 Can you try my suggestion in that ticket just for now... .transition-test {
transition: all 0.00s ease 0.00s;
transition-delay: 0.00s;
transition-duration: 0.00s;
transition-delay: 0.00ms;
transition-duration: 0.00ms;
} Here is another suggestion: yui/yuicompressor#342 using transition-delay: unset |
The workaround works, but it does not resolve the issue. After optimization: .transition-test{transition:all .00s ease .00s;transition-delay:.00s;transition-duration:.00s;transition-delay:.00ms;transition-duration:.00ms} With one decimal place, units are also removed. |
The YUI compressor project looks pretty dead to me... |
its totally dead that is why I copied the code into this project and patched it myself instead of using their lib like it used to. So I have CssCompressor.java and I had patched like 5 PR's from YUI that have been open for years. |
Did you try |
I chose the first workaround. |
Oh I thought you said "but it does not resolve the issue." like that didn't fix it. |
Before that, I used closure-compiler-maven-plugin v2.22.0 Maybe someone will improve it in the future. |
OK I am modifying that guy's PR which had some issues but hopefully it will fix this issue for 2.3.9! |
If I push 2.3.9 to Maven Central would you try it @miroskow ?? |
I'm looking forward to version 2.3.9 :) |
ok let me do a build I will let you know when its in Maven Central. |
OK 2.3.9 is now in Maven Central. Give it a shot. |
Test resources-optimizer-maven-plugin v2.3.9 Before optimization:
After optimization:
Looks good |
Awesome thanks for testing!!!! |
I added a battery of unit tests for CSS compression and included your new test case as well! |
Used resources-optimizer-maven-plugin v2.3.8
Before optimization:
After optimization:
Removing the units of measure s, ms for a value of 0 is invalid for the transition property.
https://developer.mozilla.org/en-US/docs/Web/CSS/time
"0 Although unitless zero is allowed for [length's], it's invalid for [time's]."
The text was updated successfully, but these errors were encountered: