-
Notifications
You must be signed in to change notification settings - Fork 355
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
invalid order of pseudo-selectors #484
Comments
The single-colon syntax for |
Thanks @nex3, that did indeed fix it! In a way, I'm glad to finally have a concrete reason to use So while I appreciate dart-sass being strict about this, emitting a warning might save some users a lot of trouble down the road - especially given browsers' (surprising) behavior of ignoring subsequent selectors. |
Fair enough, I suppose it's not too hard to special-case |
Great, I appreciate that! |
Using v1.14.0, the following code:
results in
(only when using
@extend
though; when embedding the nested&:before
rule set, the order of pseudo-selectors is reversed)This order of pseudo-selectors
:before:empty
appears to be invalid, as both Firefox (v62.0.2) and Chrome (v69.0.3497.100) simply ignore the entire rule set (even if it's a list of multiple selectors, those are ignored as well) - reversing the order to:empty:before
makes everything work as expected: test caseThe text was updated successfully, but these errors were encountered: