[go: nahoru, domu]

Skip to content

Commit

Permalink
[css-cascade-6] Specify how name-defining at-rules behave in @scope (#…
Browse files Browse the repository at this point in the history
…8462)

Resolves #6895.

Co-authored-by: Miriam Suzanne <miriam@oddbird.net>
  • Loading branch information
andruud and mirisuzanne committed Feb 17, 2023
1 parent 0a13424 commit 81c1880
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions css-cascade-6/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ Scoped Styles</h2>
up to any [=scoping limit=] elements. [=Scoping limit=] elements and
their descendants are not included in the [=scope=].

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

Note: In contrast to [[CSS-SCOPING-1#shadow-dom|Shadow Encapsulation]],
which describes a persistent one-to-one relationship in the DOM
between a [=shadow host=] and its nested [=shadow tree=],
Expand Down Expand Up @@ -476,8 +479,11 @@ 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>>.
Global, name-defining [=at-rules=]
such as ''@keyframes'' or ''@font-face'' or ''@layer''
that are defined inside ''@scope'' are valid,
but are not scoped or otherwise affected
by the enclosing ''@scope'' rule.

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

0 comments on commit 81c1880

Please sign in to comment.