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

Hey guys I found a bug in the compiler #46

Closed
ArmeniaH opened this issue Feb 12, 2016 · 1 comment
Closed

Hey guys I found a bug in the compiler #46

ArmeniaH opened this issue Feb 12, 2016 · 1 comment

Comments

@ArmeniaH
Copy link

Assume this scss code

.class1, .class2 {
div:not(.last) {
background:red;
}
}

After compiling I get

.class1 div:not(.last, .last), .class2 div:not(.last, .last) {
background: red;
}


another example

.class1, .class2, .class3, .class4 {
div:not(.last) {
background:red;
}
}

.class1 div:not(.last, .last, .last, .last), .class2 div:not(.last, .last, .last, .last), .class3 div:not(.last, .last, .last, .last), .class4 div:not(.last, .last, .last, .last) {
background: red;
}

As you can see the .last class is getting duplicated by the number of global class counts.

@rodneyrehm
Copy link
Member

I took the liberty of formatting your code examples.

The issue is already known and tracked at sass/libsass#1901. There is nothing sass.js can do about errors in libsass itself. Closing this issue because of upstream problem.

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

No branches or pull requests

2 participants