-
Notifications
You must be signed in to change notification settings - Fork 465
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
Extended selectors wont compile correctly (with both regular and silent selectors) #146
Comments
The only way I can get something similar is by using mixins, but that's far from ideal. |
Just added a spec test for this example... |
Referencing #80. This feature is difficult to implement completely, so I can't give an ETA yet. |
@akhleung Sure, I get it. Thanks for all the hard work, wish I was able to help here. |
Just to add to this issue, i've noticed that even regular selectors wont extend correctly:
and then extend any selector with: It will only inerhit the base rule |
Sorry to ping this, but is there any estimation on when will this be available? |
+1. Really really incredibly important to the usefulness of sass. |
+1. Same for me. |
+1 this is a must-have |
We know this is an important feature and we're bumping up the priority on it ... it is, however, a very difficult feature to get completely right, but I'm hoping to consult with @nex3 in the near future to figure out how he did it in Ruby Sass. |
You guys are doing an awesome job. Thank your for that and for tolerating our impatience. |
Just to echo everything Luis said :) |
I've just added a bounty for this. I like to think it will buy those involved a beer/hot beverage/cocktail of choice whenever this gets finished. https://www.bountysource.com/issues/1057456-extend-classes-wont-compile-correctly-with-both-regular-and-silent-selectors/bounties |
I also added a bounty for this one. Hope this will help :) |
Working on the feature right now. 100% compatibility with Ruby Sass's |
Cool, that's great news! Thanks for all the hard work! |
Really appreciate the hard work on this, guys. I'm porting over https://github.com/net-engine/trove to use libsass, and this seems to be one of the last issues. |
Okay, the two examples given are now working correctly on the This is not to say that the feature is done -- far from it! I'm just trying to get it working one chunk at a time. |
@akhleung is there a branch I can try to see if it works with our Sass? |
The new code is in the |
Sorry to introduce some noise to the ticket comments but I just wanted to give thanks to @akhleung for the hard work. |
Just wanted to add another example where @extends doesn't work properly. Scss .myBase {
text-decoration: none;
}
.myInherit{
@extend .myBase;
line-height: 1.6;
}
.myBase.Sub{
color: #123456;
} SassLib .myBase, .myInherit {
text-decoration: none; }
.myInherit {
line-height: 1.6; }
.myBase.Sub, .Sub.myInherit {
color: #123456; } Ruby Sass .myBase, .myInherit {
text-decoration: none; }
.myInherit {
line-height: 1.6; }
.myBase.Sub, .myInherit.Sub {
color: #123456; } |
Interesting; I'll look into why the order gets mixed up. (At least the output is still semantically correct, if I'm not mistaken.) |
Oh, also, I should mention that I've merged what I have so far into master, so |
I'd like to add: WOOOOOOOOOOOOOO! |
@deezahyn There are now 35 extend tests that fail/error, but they're all rare edge cases, with the exception of 090_test_comma_extendee. That's the syntax that allows And please open new issues for those failing tests that turn out to be dealbreakers for you! |
Great news! Looking forward for the new version out, making it possible for me to move back from Ruby SASS. One thing I gon't quite get. @uberska who earned all the praise as a developer - is not part of the Libsass team? And...
... means that this huge task was backed not only by one of the Top three biggest bounties on Bountysource? |
This is wonderful. Thanks to all who helped make this happen. +1 to EOL the Ruby implementation. |
@bonfish Good questions! @DealerDotCom sponsored the development work on this (devoted full time employees to work on it for weeks!) because it is valuable for our development process efficiency. @uberska and @jaddessi had a lot of prior C++ experience, so they did the lion's share of the development work. @michaek and I helped with writing tests, fixing a few bugs and validating their work. It was a really fun project to work on and we're thrilled that it's available for others to enjoy! |
@jschulte that sounds very inspiring! Thank you so much for your work! One more question, if I may: is there a list of tests somewhere in the public, that at-extend is still uncapable of passing? Just to get the view of what constructs to evade in advance. |
<3 |
🎉 |
Excellent Work! |
thanks for the hard work. 🎉 @hcatlin which commit closed this issue? I'm still getting wrong output from |
The node-sass project will be doing a release once libsass has its 3.0.0 release. In the meantime, it is possible to build node-sass (and thus use it) following the instructions here: https://github.com/sass/node-sass#rebuilding-binaries That said, it's not exactly for the faint of heart! |
These are not all relevant to everyone, but the work on this issue has now been released where most consumers can "just use it": libsass 3.0.0 is released |
Impressed with the coordination across projects such they all release the same day! Nice work to @hcatlin and all the maintainers for making this nice for all users. :D |
Awesome!! ⛵ |
It has been amazing what happened!!!! Thanks to everyone. Hurra y Viva!!!! |
Omg, I can't believe this is finally solve. Thanks to everyone from the bottom of my heart <3. |
Apologies for the noise folks, but hoping someone will more knowledge can help me?: Yours hopefully, |
Just had to say my thanks to this fix! Life-saver, just in time! ❤️ |
When you have something like:
and extend this selector with:
should compile to:
but instead it compiles to invalid (and obviously non-functional) css:
Any news on this?
The text was updated successfully, but these errors were encountered: