Debian Codegraph @

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

raw
1 <!doctype html>
2 <head>
3 <link rel="match" href="cross-shadow-boundary-slot-5-ref.html"/>
4 </head>
5 <span id="outer">Outer</span>
6 <div id="host">
7 <template shadowrootmode="open">
8 <span id="inner">Inner</span>
9 <slot></slot>
10 </template>
11 <span id="slotted">Slotted</span>
12 </div>
13 <script>
14 // Selected contents are:
15 // ter
16 // Inner Slotted
17 window.getSelection()
18 .setBaseAndExtent(slotted.firstChild, 3, outer.firstChild, 2);
19 </script>