-
Notifications
You must be signed in to change notification settings - Fork 465
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
Problems parsing multiplication by negative constant #1291
Comments
Latest ruby sass gives the following warnings, which is why libsass does not support this (yet?)
|
As it turns out, this has to do with the deprecated warnings. Thanks |
@xzyfer since it was easy I refactored the unquote function to match current latest ruby sass (also reporting a deprecation warning). IMO we currently support this for Lists, so IMO it's more correct this way. As a side note: Ruby sass quote function already errors out on other types than strings. |
Specs added sass/sass-spec#411 |
This PR activates specs for sass/libsass#1291
Description
This partial file from Sass gets included when you need to support IE7.
There's a mixin here that libsass have trouble parsing: ie7-pull. That's a complex expression, but the isolated problem is the
#{$decimal * -1}
.After calling this file in the console with
node-sass spec.scss
this is the output:Workaround
A workaround for this particular case is pretty simple, just rewrite the mixin as follows:
How to reproduce
Here's a sassmeister gist with some specific example. The code is also here:
Sass
Expected output
The above workaround can be applied to the specs provided for them to work.
Updated: to fix the duplicated mixins in the steps to reproduce
The text was updated successfully, but these errors were encountered: