-
Notifications
You must be signed in to change notification settings - Fork 463
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
Error with &
selector interpolation in @at-root
blocks
#1043
Comments
&
selector interpolation in @at-root
blocks
@xzyfer I don't think I have the rights to assign this issue to myself....would you mind assigning it to me? |
@ekskimn looks like issues can only be assigned to core members |
@xzyfer ah, got it =) |
@ekskimn you may add the |
This still fails the spec. |
Apologies, it looks like my local sass-spec is having issues. |
This fix was a false positive due to sass/sass-spec#380. The spec still fails. |
I noticed another issue with .foo {
@at-root button#{&} {
color: red;
}
}
// Generated CSS has an additional selector prepended
.foo button.foo {
color: red;
} This wasn't a problem in I thought it made sense to include this here, but I'm happy to submit a separate issue if you prefer. Thanks! |
Hi all, i'm on this bug again...should have a fix for it shortly...I think I know what's going on with it. |
@ekskimn FYI I actually already have a WIP branch which passes this (an other at-root) issues ... |
oh? is it pushed to the repo? |
#1249: Not sure if I already pushed all the latest work. But it's really in a WIP state, so no, it's not yet pushed and needs more refactoring from my side ... |
Ah i see what you're doing....lol...you really didn't like the contextualize_eval, huh? =) Do you happen to know when you might push it? My team and I are wanting to get that fix in to fix a particular issue we have. Also do you happen to know if you're going to merge the selector-functions PR in as well? |
The plan is to @mgreter PR and selector functions with 3.3. As for when that'll be it's hard to say. |
We now have a passing spec test since #1249 was merged 🎈 |
@tedw's comment several posts up still seems to be an issue? Is there a separate issue for this?
outputs:
expected:
http://sassmeister.com/gist/d610ed626e510cea938c EDIT: Sorry guys. I can see from this issue that it will be fixed (is fixed) in 3.3 #1491 |
Hello,
I have a different behaviour with & parent selector, between sass and libsass
// libsass 3.4.0-beta.4 outputs:
// Ruby sass outputs:
It works correctly when the interpolation is not inside
@at-root
blocks!Thank you !
The text was updated successfully, but these errors were encountered: