Debian Codegraph @

testing/web-platform/mozilla/tests/selection/cross-shadow-boundary-slot-complex-3.html

raw
1 <!doctype html>
2 <head>
3 <link rel="match" href="cross-shadow-boundary-slot-complex-3-ref.html"/>
4 </head>
5 <div>
6 <template shadowrootmode="open">
7 <slot></slot>
8 </template>
9 <div id="nested">
10 <template shadowrootmode="open">
11 <span id="start">Start</span>
12 <slot></slot>
13 <span>End</span>
14 </template>
15 <span>Another</span>
16 </div>
17 <span>Second</span>
18 <span id="end">Third</span>
19 </div>
20 <script>
21 // art Another End
22 // Second Thir
23 window.getSelection().setBaseAndExtent(
24 nested.shadowRoot.getElementById("start").firstChild,
25 2,
26 end.firstChild,
27 4);
28 </script>