-
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
Deep @extend specificity problems - continuation of the continuation #1248
Comments
Spec PR: sass/sass-spec#399 |
Thanks @mzgol we're looking into it. |
Hey @mzgol first of all thanks for the test case! I tried to dig into the problem, as I thought with my latest refactor I had enough knowledge of most code to understand it. With the help of this test case and by comparing the output of ruby sass, I was able to narrow down the problem, but unfortunately my knowledge is not enough to have it fixed (@xyfer maybe you know more about the internals of extend, specially in regards to sources attached to compound selector, haven't really seen that one before?). So I thought I document my findings here. First the code files involved as reference:
There are a few todo notes in extend and a few indicate in the right direction IMHO. For me it looks like a compound selector in the second extend has incorrect Ruby:
Libsass
Following things seem to be wrong:
Maybe @akhleung or @xzyfer have more ideas what could be going wrong!? If it is of any use, I could also provide the modifications for ruby sass to get the debug output as posted above. |
Probably one of the most occult things I have ever debugged. But finally after probably the third different stab at it: "mission impossible accomplished" -> #1501 |
@mgreter Thanks! \o/ |
Refs #1091 #592
The following SCSS:
is converted by Ruby Sass 3.4.14 to:
libsass 3.2.4 produces:
The
.a.b .d
selector is missing, it's important due to CSS specificity.EDIT: test case simplified.
The text was updated successfully, but these errors were encountered: