Skip to content

Added documentation that sibling combinators to the right of :scope never match#43743

Open
narasimhan-lakshmi wants to merge 2 commits intomdn:mainfrom
narasimhan-lakshmi:update/docx-after-scope
Open

Added documentation that sibling combinators to the right of :scope never match#43743
narasimhan-lakshmi wants to merge 2 commits intomdn:mainfrom
narasimhan-lakshmi:update/docx-after-scope

Conversation

@narasimhan-lakshmi
Copy link
Copy Markdown
Contributor

Description

Added a note section that describes that sibling combinators to the right of :scope never match.
Explicit examples showing :scope + * and :scope ~ * as selectors that never match with firefox generated warnings.

Motivation

It updates the documentation and makes the reader to understand proper working of scope without bugs.

Additional details

Related issues and pull requests

Fixes #42364

@narasimhan-lakshmi narasimhan-lakshmi requested a review from a team as a code owner April 11, 2026 04:50
@narasimhan-lakshmi narasimhan-lakshmi requested review from chrisdavidmills and removed request for a team April 11, 2026 04:50
@github-actions github-actions bot added the Content:CSS Cascading Style Sheets docs label Apr 11, 2026
@github-actions github-actions bot added the size/s [PR only] 6-50 LoC changed label Apr 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add section about never matching sibling selectors after :scope

2 participants