@@ -297,9 +297,10 @@ Shadow DOM Selection Model</h3>
297297 and their descendants,
298298 ordered by a pre-order traversal.
299299
300- A selector is <dfn>in the context of a shadow tree</dfn> if,
301- when <a>match a selector against a tree</a> is called for it,
302- one of its <var> root elements</var> are in a <a>shadow tree</a> .
300+ When a selector is <a lt="match a selector against a tree">matched against a tree</a> ,
301+ its <dfn export>tree context</dfn> is the <a>root</a> of the <var> root elements</var> passed to the algorithm.
302+ If the <a>tree context</a> is a <a>shadow root</a> ,
303+ that selector is being matched <dfn>in the context of a shadow tree</dfn> .
303304
304305 <div class="example">
305306 For example,
@@ -308,6 +309,9 @@ Shadow DOM Selection Model</h3>
308309 So is the argument to {{querySelector()}} when called from a <a>shadow root</a> .
309310 </div>
310311
312+ Declarations inherit the <a>tree context</a>
313+ of the selector that was matched to apply them.
314+
311315<h4 id='host-element-in-tree'>
312316Shadow Hosts in a Shadow Tree</h4>
313317
@@ -619,9 +623,9 @@ Cascading</h4>
619623 called Shadow Tree.
620624
621625 * When comparing two declarations
622- that are in different <a>shadow trees </a> ,
623- then for normal rules the declaration earlier in the <a>tree-of-trees order</a> wins,
624- and for important rules the declaration coming later in the <a>tree-of-trees order</a> wins.
626+ that have different <a>tree contexts </a> ,
627+ then for normal rules the declaration earlier in the <a>shadow-including tree order</a> wins,
628+ and for important rules the declaration coming later in the <a>shadow-including tree order</a> wins.
625629
626630 Note: This is the <em> opposite</em> of how scoped styles work.
627631
0 commit comments