Debian Codegraph @

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

raw
1 <head>
2 <link rel="match" href="cross-shadow-boundary-slot-10-ref.html"/>
3 </head>
4 <div id="host">
5 <template shadowrootmode="open">
6 <slot></slot>
7 </template>
8 <span>slotted</span>
9 </div>
10
11 <script>
12 // "slotted" is selected
13 window.getSelection().setBaseAndExtent(host, 0, host, host.childNodes.length);
14 </script>