@@ -250,6 +250,17 @@ Shadow DOM Selection Model</h3>
250250 and their descendants,
251251 ordered by a pre-order traversal.
252252
253+ A selector is <dfn>in the context of a shadow tree</dfn>
254+ if it is in a stylesheet attached to the shadow tree
255+ (that is, present in the <code> ShadowRoot.styleSheets</code> list),
256+ or it is used in an API that is <dfn>rooted in a shadow tree</dfn> .
257+
258+ <div class='issue'>
259+ Need to get DOM to hook this term.
260+ <code> querySelector()</code> /etc are <a>rooted in a shadow tree</a>
261+ if they're called on a ShadowRoot or an element in a shadow tree.
262+ </div>
263+
253264<h4 id='host-element-in-tree'>
254265Host Elements in a Shadow Tree</h4>
255266
@@ -308,7 +319,7 @@ Shadow DOM Selectors</h3>
308319Selecting Into the Light: the '':host'', '':host()'', and '':host-context()'' pseudo-classes</h4>
309320
310321 The <dfn selector>:host</dfn> pseudo-class,
311- when evaluated in the context of a <a> shadow tree</a> ,
322+ when evaluated <a> in the context of a shadow tree</a> ,
312323 matches the <a>shadow tree's</a> <a>host element</a> .
313324 In any other context,
314325 it matches nothing.
@@ -318,7 +329,7 @@ Selecting Into the Light: the '':host'', '':host()'', and '':host-context()'' ps
318329
319330 <pre> :host( <<compound-selector>> )</pre>
320331
321- When evaluated in the context of a <a> shadow tree</a> ,
332+ When evaluated <a> in the context of a shadow tree</a> ,
322333 it matches the <a>shadow tree's</a> <a>host element</a>
323334 if the <a>host element</a> ,
324335 in its normal context,
@@ -366,7 +377,7 @@ Selecting Into the Light: the '':host'', '':host()'', and '':host-context()'' ps
366377
367378 <pre> :host-context( <<compound-selector>> )</pre>
368379
369- When evaluated in the context of a <a> shadow tree</a> ,
380+ When evaluated <a> in the context of a shadow tree</a> ,
370381 the '':host-context()'' pseudo-class matches the <a>host element</a> ,
371382 if the <a>host element</a> or one of its ancestors matches the provided <<compound-selector>> .
372383 For the purpose of this pseudo-class,
0 commit comments