Skip to content

Commit

Permalink
[css-cascade-6] Disallow pseudo-elements in @scope prelude
Browse files Browse the repository at this point in the history
Resolves w3c#7382.
  • Loading branch information
andruud committed Feb 16, 2023
1 parent 16dc22b commit 1d1de10
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css-cascade-6/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ Scoping Styles: the ''@scope'' rule</h4>
are [=scoped selectors|scoped by=]
the selectors of the outer one.

[=Pseudo-elements=] cannot be [=scoping roots=] or [=scoping limits=];
they are invalid both within <<scope-start>> and <<scope-end>>.

<h4 id="scope-combinator">
Scoped Descendant Combinator</h4>

Expand Down Expand Up @@ -622,6 +625,9 @@ Changes since the 21 December 2021 First Public Working Draft</h3>
Significant changes since the
<a href="https://www.w3.org/TR/2021/WD-css-cascade-6-20211221/">21 December 2021 First Public Working Draft</a> include:

* Disallowed [=pseudo-elements=] in the ''@scope'' prelude.
(<a href="https://github.com/w3c/csswg-drafts/issues/7382">Issue 7382</a>)

* [=Scoping limit=] elements are excluded from the resulting [=scope=].
(<a href="https://github.com/w3c/csswg-drafts/issues/6577">Issue 6577</a>)

Expand Down

0 comments on commit 1d1de10

Please sign in to comment.