Closed samastur closed 10 years ago
Yeah, this is #192; needs some clever things done to the parser to treat this specially.
As a workaround, which should be compatible with Ruby Sass as well, you can do this:
unquote("calc(100% - 10px)")
Thanks, but this doesn't work because it still removes spaces around minus. They are optional only around / and *.
What do you mean? It comes out literally for me, as it should.
I think you're right. I'm using pyScss through web assets and it is probably they which strip whitespace out.
CSS' calc() allows mixing units that are not directly convertible so calc(100% - 10px) is valid value.
pyScss fails in such cases with a "can't reconcile unit" ValueError exception. I think the problem really is that it does not distinguish calc() from normal sass number operations and hence does not simply leave it alone.