-
Notifications
You must be signed in to change notification settings - Fork 104
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
CSS selectors compiled wrong #60
Comments
Try sassc-ruby 1.8.3. This may be a bug in the latest version of libsass. |
@bolandrm Thank's for the suggestion. Just tried it and does not make a difference! |
Hi! Regards! |
I'd also love a fix for this.
was compiled to
|
I've just released sassc 1.8.5 which upgrades libsass to 3.3.4. Please give that a try! |
I've now sassc 1.9.0, but the same issue. |
I have more details after some tests. .test {
// this works
.test__elem {
&:not(.active) {
opacity: 0.5;
}
}
// this creates a bug in the 'not' selector
.test__item,
.test__item2 {
&:not(.active) {
opacity: 0.5;
}
}
} is compiled to: .test .test__elem:not(.active) {
opacity: 0.5;
}
.test .test__item:not(.active, .active),
.test .test__item2:not(.active, .active) {
opacity: 0.5;
} [EDIT]: I opened a bug in libsass |
@ElManouche could you please post this bug here: https://github.com/sass/libsass/issues and link your issue back to this thread so we can track it? |
@bolandrm this is fixed in 3.3.4. |
@xzyfer i thought so... sassc 1.8.5 / 1.9.0 are using libsass 3.3.4, so this should be fixed. |
When updating to the newest Rails version 4.2.5.1, sassc (1.8.4) and sassc-rails (1.2.0) were also updated. Suddenly Bootstrap is compiled with strange errors. For example input-groups:
The :first-child and :last-child statements should obviously only appear once and let the statement break in Chrome and Firefox. Switching back to sass-rails solves the error.
Any idea what change caused this?
The text was updated successfully, but these errors were encountered: