File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -531,8 +531,11 @@ Identifying Scoping Roots and Limits</h4>
531
531
If no <<scope-start>> is specified,
532
532
the [=scoping root=] is the [=parent element=] of the [=owner node=]
533
533
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=] .)
536
539
Any '':scope'' or ''&'' selectors in <<scope-start>>
537
540
are interpreted as defined for its outer context.
538
541
@@ -722,6 +725,10 @@ Changes since the 21 March 2023 Working Draft</h3>
722
725
Significant changes since the
723
726
<a href="https://www.w3.org/TR/2023/WD-css-cascade-6-20230321/">21 March 2023 Working Draft</a> include:
724
727
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
+
725
732
* Clarified that [=scope proximity=] is a single measurement of the steps
726
733
between a single [=scoping root=] and [=scoped style rule=] [=subject=] .
727
734
You can’t perform that action at this time.
0 commit comments