The &
CSS nesting selector has gotchas/footguns/confusing behaviors that should be documented
#36888
Labels
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
This page should document the gotchas and footguns in comparison to SCSS/less/stylus etc implementations of the
&
selector.CSS nesting does not behave like preprocessor nesting, and it is not intuitive for developers (and even browser vendors) in many edge cases.
What did you expect to see?
A section on gotchas. The section should include easily digestible examples of things that developers expect to work (like
&
inside pseudo-selectors) but don't.Do you have any supporting links, references, or citations?
:is()
introduces a host of problems w3c/csswg-drafts#9492Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: