Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable values beginning with "/" throw an error. #2349

Closed
bryanbraun opened this issue Mar 9, 2017 · 1 comment

Comments

@bryanbraun
Copy link

commented Mar 9, 2017

Hi there. 馃憢 I just noticed that when I begin a variable's value with / an error is thrown and the sass won't compile. This isn't an issue in ruby sass. It also isn't an issue if the / is in the middle of the value.

input.scss

$path1: assets/images; // no errors thrown
$path2: /images;       // errors thrown
.test {
  background: url(#{$path1}/image.png);
  background: url(#{$path2}/image.png);
}

libsass 3.5.0.beta.2

Error: Invalid CSS after "$path2:": expected expression (e.g. 1px, bold), was "/images;"

ruby sass 3.4.23

.test {
  background: url(assets/images/image.png);
  background: url(/images/image.png); }

version info:

$ node-sass --version
node-sass   4.5.0   (Wrapper)       [JavaScript]
libsass         3.5.0.beta.2   (Sass Compiler) [C/C++]

Spec sass/sass-spec#1092

mgreter added a commit to mgreter/sass-spec that referenced this issue Mar 10, 2017
mgreter added a commit to mgreter/libsass that referenced this issue May 20, 2017
mgreter added a commit to mgreter/libsass that referenced this issue May 20, 2017
mgreter added a commit that referenced this issue May 20, 2017
Implement unary slash expressions (#2349 and #2384)
@mgreter

This comment has been minimized.

Copy link
Contributor

commented May 20, 2017

Should be fixed by #2388

@mgreter mgreter closed this May 20, 2017
@mgreter mgreter self-assigned this May 20, 2017
mgreter added a commit to mgreter/sass-spec that referenced this issue May 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can鈥檛 perform that action at this time.