Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

@extending selector & :not(selector) won't compile #2130

Closed
jdsteinbach opened this issue Jul 21, 2016 · 2 comments
Closed

@extending selector & :not(selector) won't compile #2130

jdsteinbach opened this issue Jul 21, 2016 · 2 comments

Comments

@jdsteinbach
Copy link

jdsteinbach commented Jul 21, 2016

@extending selector & :not(selector) won't compile

View in Sassmeister

Yes, I realize the code below isn't logical. :) I worked around it & my code compiles fine now.

But in Ruby Sass, it compiles without error as I expected. In libsass (running in gulp-sass), I got a bus error. Sassmeister also hangs when I attempt to use its libsass (3.5.6) compiler.

input.scss

.section-title {
  text-transform: uppercase;
}

.section {
  h2:not(.section-title) {
    @extend .section-title;
  }
}

libsass 3.5.6

bus error / no completion

ruby sass 3.4.21

.section-title, .section h2:not(.section-title) {
  color: #444;
}

version info:

gulp-sass@2.3.2
node-sass@3.8.0
@jdsteinbach
Copy link
Author

I did not have this error back in March & earlier. Don't know what version of node-sass I had installed back then, sorry.

@xzyfer
Copy link
Contributor

xzyfer commented Aug 4, 2016

I can confirm in v3.6.0 there was a segfault. With latest master it produces the following incorrect output.

.section-title, .section h2:not(.section-title):not(.section h2:not(.section-title)) {
  text-transform: uppercase; }

This output is due to to a know bug #2055. Closing this as a duplicate.

@xzyfer xzyfer closed this as completed Aug 4, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants