Skip to content
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

The & CSS nesting selector has gotchas/footguns/confusing behaviors that should be documented #36888

Open
aeharding opened this issue Nov 20, 2024 · 0 comments
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@aeharding
Copy link

aeharding commented Nov 20, 2024

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?

Do you have anything more you want to share?

No response

@aeharding aeharding added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 20, 2024
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs and removed Content:CSS Cascading Style Sheets docs labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant