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=#inheritance0><spanclass=secno>4.1</span> Inheritance and Shadow DOM</a></ul>
120
120
<li><ahref=#inheritance><spanclass=secno>5</span> Shadow DOM Combinators</a>
121
-
<ulclass=toc>
122
-
<li><ahref=#shadow-deep-combinator><spanclass=secno>5.1</span> Selecting Through All Shadows: the <spanclass=cssdata-link-type=maybetitle=/shadow-deep/>/shadow-deep/</span> combinator</a></ul>
123
121
<li><ahref=#selectors><spanclass=secno>6</span> Shadow DOM Selectors</a>
124
122
<ulclass=toc>
125
123
<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>
126
124
<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>
127
125
<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>
128
-
<li><ahref=#content-combinator><spanclass=secno>6.4</span> Selecting Distributed Elements: the <spanclass=cssdata-link-type=maybetitle=::content>::content</span> pseudo-element</a></ul>
126
+
<li><ahref=#content-combinator><spanclass=secno>6.4</span> Selecting Distributed Elements: the <spanclass=cssdata-link-type=maybetitle=::content>::content</span> pseudo-element</a>
127
+
<li><ahref=#deep-combinator><spanclass=secno>6.5</span> Selecting Through All Shadows: the <spanclass=cssdata-link-type=maybetitle=/deep/>/deep/</span> combinator</a></ul>
Selecting Through All Shadows: the <aclass=cssdata-link-type=maybehref=#selectordef-shadow-deeptitle=/shadow-deep/>/shadow-deep/</a> combinator</span><aclass=self-linkhref=#shadow-deep-combinator></a></h3>
322
-
323
-
<p> When a <dfnclass=css-codedata-dfn-type=selectordata-export="" id=selectordef-shadow-deep>/shadow-deep/<aclass=self-linkhref=#selectordef-shadow-deep></a></dfn> combinator is encountered in a selector,
324
-
replace every element in the <adata-link-type=dfnhref=http://dev.w3.org/csswg/selectors-4/#selector-match-listtitle="selector match list">selector match list</a>
325
-
with every element reachable from the original element
326
-
by traversing any number of child lists or shadow trees.
327
-
328
-
<divclass=example>
329
-
For example, say you had a component with a <adata-link-type=dfnhref=#shadow-treetitle="shadow tree">shadow tree</a> like the following:
330
-
331
-
<pre> <x-foo>
332
-
<"shadow tree">
333
-
<div>
334
-
<span id="not-top">...</span>
335
-
</div>
336
-
<span id="top">...</span>
337
-
<x-bar>
338
-
<"shadow tree">
339
-
<span id="nested">...</span>
340
-
</>
341
-
</x-bar>
342
-
</>
343
-
</x-foo>
344
-
</pre>
345
-
<p> For a stylesheet in the outer document,
346
-
the selector <spanclass=cssdata-link-type=maybetitle="x-foo /shadow-deep/ span">x-foo /shadow-deep/ span</span>
347
-
selects all three of <code><span></code> elements:
Selecting Through All Shadows: the <aclass=cssdata-link-type=maybehref=#selectordef-deeptitle=/deep/>/deep/</a> combinator</span><aclass=self-linkhref=#deep-combinator></a></h3>
501
+
502
+
<p> When a <dfnclass=css-codedata-dfn-type=selectordata-export="" id=selectordef-deep>/deep/<aclass=self-linkhref=#selectordef-deep></a></dfn> combinator is encountered in a selector,
503
+
replace every element in the <adata-link-type=dfnhref=http://dev.w3.org/csswg/selectors-4/#selector-match-listtitle="selector match list">selector match list</a>
504
+
with every element reachable from the original element
505
+
by traversing any number of child lists or shadow trees.
506
+
507
+
<divclass=example>
508
+
For example, say you had a component with a <adata-link-type=dfnhref=#shadow-treetitle="shadow tree">shadow tree</a> like the following:
509
+
510
+
<pre> <x-foo>
511
+
<"shadow tree">
512
+
<div>
513
+
<span id="not-top">...</span>
514
+
</div>
515
+
<span id="top">...</span>
516
+
<x-bar>
517
+
<"shadow tree">
518
+
<span id="nested">...</span>
519
+
</>
520
+
</x-bar>
521
+
</>
522
+
</x-foo>
523
+
</pre>
524
+
<p> For a stylesheet in the outer document,
525
+
the selector <spanclass=cssdata-link-type=maybetitle="x-foo /deep/ span">x-foo /deep/ span</span>
526
+
selects all three of <code><span></code> elements:
it would potentially be interesting to just double it.
534
+
Maybe we can give the descendant combinator a pseudonym of <spanclass=cssdata-link-type=maybetitle=">>">>></span>,
535
+
as it itself is a super-child combinator?
536
+
Then <aclass=cssdata-link-type=maybehref=#selectordef-deeptitle=/deep/>/deep/</a> could be spelled <spanclass=cssdata-link-type=maybetitle=">>>">>>></span>
it would potentially be interesting to just double it.
700
+
Maybe we can give the descendant combinator a pseudonym of <spanclass=cssdata-link-type=maybetitle=">>">>></span>,
701
+
as it itself is a super-child combinator?
702
+
Then <aclass=cssdata-link-type=maybehref=#selectordef-deeptitle=/deep/>/deep/</a> could be spelled <spanclass=cssdata-link-type=maybetitle=">>>">>>></span>
0 commit comments