-
Notifications
You must be signed in to change notification settings - Fork 657
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
[css-selectors] Nesting #2456
Comments
Regarding https://tabatkins.github.io/specs/css-nesting/ : I think I'd prefer a syntax like that of Sass https://sass-lang.com/guide#topic-3 where it's not necessary to add the ampersand. |
In Sass, the ampersand is available (but not required - that's what I want). https://sass-lang.com/documentation/file.SASS_REFERENCE.html#parent-selector One of their examples:
is equivalent to this:
|
Is it a possibility that this might get specd? It's a handy feature, thoroughly prototyped in Sass. |
This topic has a previously filed issue with *some discussion happening. You might have more luck closing this issue and contributing over there. |
(I should've searched for existing issues before creating one, but anyways for this case I hope that cross-linking will suffice.) |
An earlier nesting ticket: #998 |
Closing as duplicate. Let's please avoid having multiple threads for the same thing. |
@LeaVerou I added my comments to your ticket. Thanks for submitting the earlier ticket! I hope the W3C will implement nesting ... |
In a current project
https://tobireif.com/demos/grid/
I have to write ".layout1" many times:
Having something like Sass's Nesting
https://sass-lang.com/guide#topic-3
would allow me to write the string ".layout1" only once (ditto for the string ".layout2" and ".layout3").
The text was updated successfully, but these errors were encountered: