Skip to content

Commit 0a13424

Browse files
andruudmirisuzanne
andauthored
[css-cascade-6] Disallow pseudo-elements in @scope prelude (w3c#8461)
* [css-cascade-6] Disallow pseudo-elements in @scope prelude Resolves w3c#7382. * Spaces and tabs --------- Co-authored-by: Miriam Suzanne <miriam@oddbird.net>
1 parent b0f85b2 commit 0a13424

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-cascade-6/Overview.bs

+6
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ Scoping Styles: the ''@scope'' rule</h4>
476476
are [=scoped selectors|scoped by=]
477477
the selectors of the outer one.
478478

479+
[=Pseudo-elements=] cannot be [=scoping roots=] or [=scoping limits=];
480+
they are invalid both within <<scope-start>> and <<scope-end>>.
481+
479482
<h4 id="scope-combinator">
480483
Scoped Descendant Combinator</h4>
481484

@@ -553,6 +556,9 @@ Changes since the 21 December 2021 First Public Working Draft</h3>
553556
Significant changes since the
554557
<a href="https://www.w3.org/TR/2021/WD-css-cascade-6-20211221/">21 December 2021 First Public Working Draft</a> include:
555558

559+
* Disallowed [=pseudo-elements=] in the ''@scope'' prelude.
560+
(<a href="https://github.com/w3c/csswg-drafts/issues/7382">Issue 7382</a>)
561+
556562
* Removed selector scoping notation.
557563
(<a href="https://github.com/w3c/csswg-drafts/issues/7709">Issue 7709</a>)
558564

0 commit comments

Comments
 (0)