Skip to content

[selectors-4][editorial] Clarify when multiple scoping roots are provided#13491

Open
cdoublev wants to merge 1 commit intow3c:mainfrom
cdoublev:patch-6
Open

[selectors-4][editorial] Clarify when multiple scoping roots are provided#13491
cdoublev wants to merge 1 commit intow3c:mainfrom
cdoublev:patch-6

Conversation

@cdoublev
Copy link
Collaborator

@cdoublev cdoublev commented Feb 13, 2026

§ 8.4. The Reference Element Pseudo-class: :scope defines that it represents one or more scoping roots, and what :scope represents when zero or one scoping root is provided, but not when more than one scoping roots are provided. I hope the proposed change is obvious.

§ 17.5. Match a Selector Against a Tree defines that it takes one or more scoping roots but later at its step 2, it checks if scoping root were provided, which seems to be an oversight (singular subject, plural conjugation).

@cdoublev cdoublev added the selectors-4 Current Work label Feb 13, 2026
@cdoublev
Copy link
Collaborator Author

cdoublev commented Feb 23, 2026

§ 8.4. The Reference Element Pseudo-class: :scope defines that it represents one or more scoping roots [...]

This is incorrect: :scope can be matched with respect to one or more scoping roots and can only match one of them. I pushed a commit to fix this mistake.

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

Labels

selectors-4 Current Work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant