gradle-css-plugin icon indicating copy to clipboard operation
gradle-css-plugin copied to clipboard

Spaces in calc Get Removed

Open ispecimen-lgiacalone opened this issue 7 years ago • 3 comments

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%) to calc(10px - -48%)

ispecimen-lgiacalone avatar Aug 29 '17 21:08 ispecimen-lgiacalone

I exactly have the same issue. Thanks for the quick-fix @ispecimen-lgiacalone !

Julieng50 avatar Sep 19 '17 13:09 Julieng50

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.

alexiuscrow avatar Sep 19 '17 13:09 alexiuscrow

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.

xtianus avatar Oct 24 '19 16:10 xtianus