Skip to content

Wrong information for the selector & #40981

@basantech89

Description

@basantech89

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/@scope

What specific section or headline is this issue about?

Specificity in @scope

What information was incorrect, unhelpful, or incomplete?

The first line of this headline says

Inside an @scope rule, both bare selectors and & behave as if :where(:scope) were prepended to the selector.

But from the articles below

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascade/Specificity#how_scope_blocks_affect_specificity
https://developer.chrome.com/docs/css-ui/at-scope#scope_and_specificity

They mention & img is equivalent to :is(figure, #primary) img.

What did you expect to see?

I expected & img to be equivalent to :is(figure, #primary) img on this page https://developer.mozilla.org/en-US/docs/Web/CSS/@scope#specificity_in_scope

Do you have any supporting links, references, or citations?

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascade/Specificity#how_scope_blocks_affect_specificity
https://developer.chrome.com/docs/css-ui/at-scope

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

Labels

Content:CSSCascading Style Sheets docs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions