We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/
Originally filed: sass/sass#2118
For more info see: sass/sass#667 (comment)
input.scss
.foo { background: url('background.png') -10px -10px/110% no-repeat }
[libsass 3.5.5] [1]
// error { "formatted": "Error: -0.09091px/% isn't a valid CSS value.\n on line 2 of foo.scss\n>> background: url('background.png') -10px -10px/110% no-repeat\n ------------------------------------------^\n", "message": "-0.09091px/% isn't a valid CSS value.", "column": 43, "line": 2, "file": "/Users/ceppstei/Projects/broccoli-multi-filter/foo.scss", "status": 1 }
ruby sass 3.4.22
.foo { background: url("background.png") -10px -10px/110% no-repeat; }
version info:
$ node-sass --version node-sass 3.8.0 (Wrapper) [JavaScript] libsass 3.3.6 (Sass Compiler) [C/C++]
Spec added sass/sass-spec#909
The text was updated successfully, but these errors were encountered:
The compiler seems to only try division if one or both of the operands is negative.
This will compile as-is:
.selector { background: #fff url('') 100px 20px / 100%; }
This will produce an error:
.selector { background: #fff url('') 100px -20px / 100%; }
For anyone who needs a temporary workaround, you can interpolate the negative value to bypass the error.
.selector { background: #fff url('') 100px #{-20px} / 100%; }
Sorry, something went wrong.
Add specs for issue 2149
ea9ae9a
This PR add specs for sass/libsass#2149
Add wrapping paren so libsass interprets ‘/‘ as division
a6d01a0
- sass/libsass#2149
e438a3e
mgreter
No branches or pull requests
Title: bare
/
should not be interpreted as division with bare literalsOriginally filed:
sass/sass#2118
For more info see:
sass/sass#667 (comment)
input.scss
[libsass 3.5.5] [1]
// error { "formatted": "Error: -0.09091px/% isn't a valid CSS value.\n on line 2 of foo.scss\n>> background: url('background.png') -10px -10px/110% no-repeat\n ------------------------------------------^\n", "message": "-0.09091px/% isn't a valid CSS value.", "column": 43, "line": 2, "file": "/Users/ceppstei/Projects/broccoli-multi-filter/foo.scss", "status": 1 }
ruby sass 3.4.22
version info:
Spec added sass/sass-spec#909
The text was updated successfully, but these errors were encountered: