Skip to content

Commit 86b82fc

Browse files
committed
[css-cascade-6] Shadowy preludeless scope rule is scoped to host w3c#9178
1 parent b2a13dd commit 86b82fc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

css-cascade-6/Overview.bs

+9-2
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,11 @@ Identifying Scoping Roots and Limits</h4>
531531
If no <<scope-start>> is specified,
532532
the [=scoping root=] is the [=parent element=] of the [=owner node=]
533533
of the stylesheet where the ''@scope'' rule is defined.
534-
(If no such element exists,
535-
then the [=scoping root=] is the [=root=] of the containing [=node tree=].)
534+
(If no such element exists
535+
and the containing [=node tree=] is a [=shadow tree=],
536+
then the [=scoping root=] is the [=shadow host=].
537+
Otherwise,
538+
the [=scoping root=] is the [=root=] of the containing [=node tree=].)
536539
Any '':scope'' or ''&'' selectors in <<scope-start>>
537540
are interpreted as defined for its outer context.
538541

@@ -722,6 +725,10 @@ Changes since the 21 March 2023 Working Draft</h3>
722725
Significant changes since the
723726
<a href="https://www.w3.org/TR/2023/WD-css-cascade-6-20230321/">21 March 2023 Working Draft</a> include:
724727

728+
* A ''@scope'' rule without ''<<scope-start>>'' scopes to the
729+
[==shadow host==] instead of the [==shadow root==].
730+
(<a href="https://github.com/w3c/csswg-drafts/issues/9178">Issue 9178</a>)
731+
725732
* Clarified that [=scope proximity=] is a single measurement of the steps
726733
between a single [=scoping root=] and [=scoped style rule=] [=subject=].
727734

0 commit comments

Comments
 (0)