gradle-css-plugin
gradle-css-plugin copied to clipboard
Spaces in calc Get Removed
When there is a CSS property such as calc(10px + 48%)
, it gets compressed to calc(10px+48%)
, which doesn't work (calc requires spaces around the operator). Note that this bug only exists with the "+" sign—the "-" sign works fine
- This issue was solved in newer versions of YUI Compressor, so I believe the solution is to update YUI Compressor.
- A temporary fix is to change
calc(10px + 48%)
tocalc(10px - -48%)
I exactly have the same issue. Thanks for the quick-fix @ispecimen-lgiacalone !
This issue was solved in newer versions of YUI Compressor, so I believe the solution is to update YUI Compressor.
The last released version of YUI Compressor is 2.4.8. There are no decisions for this issue.
Any news on this issue? It is a show stopper for me. Do you really use the double-dash trick in your css? Seriously? How about more complex math expressions? I've been using your gradle-css-plugin for years until my developer started to use calc :-/ Now I guess I'll have to use one of the many command-line nodejs-based tools out there. It would be nice if you could write a gradle plugin for one of those though.