File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments