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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectors inside of &:not() are duplicated in output #165

Closed
bkistyping opened this issue Mar 5, 2016 · 1 comment
Closed

Selectors inside of &:not() are duplicated in output #165

bkistyping opened this issue Mar 5, 2016 · 1 comment

Comments

@bkistyping
Copy link

These styles:

.a, .b {
  &:not(.c) { background: red; }
}

Compile to:

.a:not(.c, .c), .b:not(.c, .c) {
  background: red; }

Expected:

.a:not(.c), .b:not(.c) {
  background: red; }

The selector inside of :not() seems to be duplicated for every selector it is nested inside of. Sort of hilariously, doing something like:

.a, .b, .c {
  .d, .e {
    &:not(.f) { background: red; }
  }
}

Compiles to .a .d:not(.f, .f, .f, .f, .f, .f),, etc.

Using sassc 3.3.0, libsass 3.3.3, sass2scss 1.0.5. I know there’s another issue about this but it’s old now and wasn't labeled very clearly. Sorry!

@bkistyping
Copy link
Author

Oops, this is a libsass bug and not in sassc: sass/libsass#1901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant