summaryrefslogtreecommitdiffstats
path: root/layout/reftests/high-contrast/selection-001-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/high-contrast/selection-001-ref.html')
-rw-r--r--layout/reftests/high-contrast/selection-001-ref.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layout/reftests/high-contrast/selection-001-ref.html b/layout/reftests/high-contrast/selection-001-ref.html
new file mode 100644
index 0000000000..55a43aafd0
--- /dev/null
+++ b/layout/reftests/high-contrast/selection-001-ref.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<title>Test reference</title>
+<p>
+ Some selected text
+</p>
+<script>
+getSelection().removeAllRanges();
+let r = document.createRange();
+r.selectNode(document.documentElement);
+getSelection().addRange(r);
+</script>