Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Spaces in calc Get Removed #48

Open
ispecimen-lgiacalone opened this issue Aug 29, 2017 · 3 comments
Open

Spaces in calc Get Removed #48

ispecimen-lgiacalone opened this issue Aug 29, 2017 · 3 comments

Comments

@ispecimen-lgiacalone
Copy link

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%)
@Julieng50
Copy link

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

@alexiuscrow
Copy link

alexiuscrow commented Sep 19, 2017

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.

@xtianus
Copy link

xtianus commented Oct 24, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants