1
0
Fork 0
firefox/testing/web-platform/mozilla/tests/selection/cross-shadow-boundary-slot-in-nested-shadow-dom.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

27 lines
671 B
HTML

<!doctype html>
<head>
<link rel="match" href="cross-shadow-boundary-slot-in-nested-shadow-dom-ref.html"/>
</head>
<span id="outer">Outer</span>
<div id="host">
<template shadowrootmode="open">
<span id="inner">Inner</span>
<div id="innerHost">
<template shadowrootmode="open">
<span id="inner">Inner2</span>
<slot></slot>
</template>
<span id="slotted">Slotted</span>
</div>
</template>
</div>
<script>
// This selects:
// er
// Inner
// Inner2 Slott
const slotted = host.shadowRoot.getElementById("slotted");
window.getSelection()
.setBaseAndExtent(outer.firstChild, 3, slotted.firstChild, 5);
</script>