DescriptionSelectors in styles in shadowRoots should match in all of the host's shadowRoots.
Styles in shadow trees hosted by the same shadow host has the same scoping node, i.e. the shadow host.
So the styles can match elements in all the shadow trees, i.e.
(1) the styles should be checked when any element in a shadow tree hosted by the shadow host,
(2) the styles should have the same cascade scope,
(3) the style in older shadow tree has lower priority than the style in younger shadow tree (cascade order).
The document for this patch is:
https://docs.google.com/document/d/1qMsnHn9-dhkcDvoI-B1BR2yQ0RdWpWoZm6M5mU5gYgc/edit?usp=sharing
BUG=311717
TEST=fast/dom/shadow/style-in-shadow-matches-elements-in-all-sibling-shadows.html
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Rebased #Patch Set 4 : Fixed @keyframes regression #
Total comments: 6
Patch Set 5 : #Messages
Total messages: 7 (0 generated)
|