You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref=#selectors><spanclass=secno>6</span> Shadow DOM Selectors</a>
125
125
<ulclass=toc>
126
126
<li><ahref=#host-selector><spanclass=secno>6.1</span> Selecting the Host Element: the <spanclass=cssdata-link-type=maybetitle=:host>:host</span> and <spanclass=cssdata-link-type=maybetitle=:host()>:host()</span> pseudo-classes</a>
127
-
<li><ahref=#ancestor-selector><spanclass=secno>6.2</span> Selecting Based on an Ancestor Outside the Shadow Tree: the <spanclass=cssdata-link-type=maybetitle=:ancestor()>:ancestor()</span> pseudo-class</a>
127
+
<li><ahref=#ancestor-selector><spanclass=secno>6.2</span> Selecting Based on an Ancestor Outside the Shadow Tree: the <spanclass=cssdata-link-type=maybetitle=:host-context()>:host-context()</span> pseudo-class</a>
128
128
<li><ahref=#shadow-pseudoelement><spanclass=secno>6.3</span> Selecting the Shadow Root Itself: the <spanclass=cssdata-link-type=maybetitle=::shadow>::shadow</span> pseudo-element</a></ul>
Selecting Based on an Ancestor Outside the Shadow Tree: the <aclass=cssdata-link-type=maybehref=#selectordef-ancestortitle=:ancestor()>:ancestor()</a> pseudo-class</span><aclass=self-linkhref=#ancestor-selector></a></h3>
430
+
Selecting Based on an Ancestor Outside the Shadow Tree: the <aclass=cssdata-link-type=maybehref=#selectordef-host-contexttitle=:host-context()>:host-context()</a> pseudo-class</span><aclass=self-linkhref=#ancestor-selector></a></h3>
431
431
432
432
<p> Ordinary, selectors within a <adata-link-type=dfnhref=#shadow-treetitle="shadow tree">shadow tree</a>
433
433
can’t see elements outside the <adata-link-type=dfnhref=#shadow-treetitle="shadow tree">shadow tree</a> at all.
<p> The <dfnclass=css-codedata-dfn-type=selectordata-export="" id=selectordef-ancestor>:ancestor()<aclass=self-linkhref=#selectordef-ancestor></a></dfn> functional pseudo-class tests whether there is an ancestor,
445
+
<p> The <dfnclass=css-codedata-dfn-type=selectordata-export="" id=selectordef-host-context>:host-context()<aclass=self-linkhref=#selectordef-host-context></a></dfn> functional pseudo-class tests whether there is an ancestor,
446
446
outside the <adata-link-type=dfnhref=#shadow-treetitle="shadow tree">shadow tree</a>,
<p> When evaluated in the context of a <adata-link-type=dfnhref=#shadow-treetitle="shadow tree">shadow tree</a>,
452
-
the <aclass=cssdata-link-type=maybehref=#selectordef-ancestortitle=:ancestor()>:ancestor()</a> pseudo-class matches any element,
452
+
the <aclass=cssdata-link-type=maybehref=#selectordef-host-contexttitle=:host-context()>:host-context()</a> pseudo-class matches the <adata-link-type=dfnhref=#host-element0title="host element">host element</a>,
453
453
if the <adata-link-type=dfnhref=#host-element0title="host element">host element</a> or one of its ancestors matches the provided <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/selectors-4/#ltcompound-selectortitle="<compound-selector>"><compound-selector></a>.
0 commit comments