summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html')
-rw-r--r--testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html b/testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html
new file mode 100644
index 0000000000..189ab35c41
--- /dev/null
+++ b/testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html
@@ -0,0 +1,12 @@
+<!doctype html>
+OuterText
+<div id="host1">innerText1</div>
+OuterText
+<div id="host2">innerText2</div>
+<script>
+ const host1 = document.getElementById("host1");
+ const host2 = document.getElementById("host2");
+
+ getSelection().setBaseAndExtent(
+ host1.firstChild, 3, host2.firstChild, 3);
+</script>