-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
@extend with wrapped selectors has combinatorial explosion of selectors #2399
Comments
This seems to be a duplicate of #2055 (in some other form) |
Thanks for the quick comment! I saw that issue, but didn't realize it was the same thing. We're trying to update our codebase from 3.0 -> 3.5.0.beta3. This issue causes quite a bit of bloat in our css. Where I have .a through .e in the example, we actually have 16 selectors. From some of the other issues I found through the link you provided, it sounds like support for extending wrapped selectors isn't fully supported yet. Given that we're coming from 3.0 and haven't had extend for wrapped selectors yet, one outcome that could be useful for us would be to turn it off until the implementation is fully supported. Would you accept a pull request in libsass and node-sass for a flag to disable extends on wrapped selectors? |
No, because basic stuff works and we don't want to break that. Maybe if specifically targeting |
Took me 2 hours to come up with a hotfix to at least hide nested |
Wow, thanks for the quick turnaround, @mgreter ! We'll try a new build with libsass master. |
With master, our problem seems to be fixed. Thanks @mgreter ! |
Cool, great, thanks for the feedback! |
I have noticed a regression on 3.4.5 that I suspect may be related to this change. This is the SASS source:
In 3.4.3, libsass produced the following CSS:
Whereas on 3.4.5 I get this:
Notice the change in the selector for the inner rule. If I remove :not() from the original source 3.4.5 works as expected, so the problem does seem to be related to the handling of :not():
|
@marticongost this is not reproducable with latest master and gives your expected result. |
The online tool seems to be using 3.5b. Could this have been fixed by a later change in master (5a7dbc8)? I can certainly reproduce it in 3.4.5. I'm using the Python bindings. |
@extend with wrapped selectors has combinatorial explosion of selectors
input.scss
libsass 3.5.0.beta.3-20-g9eb7b333 via SourceMap Inspector 1
ruby sass 3.4.21 via SassMeister
The text was updated successfully, but these errors were encountered: