summaryrefslogtreecommitdiffstats
path: root/layout/reftests/high-contrast/selection-001.html
blob: 2d3cabdf0c7dc5be4e6553665692b59f7516c949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<title>::selection should use native colors in high contrast mode</title>
<style>
::selection {
  background: purple;
  color: blue;
}
</style>
<p>
  Some selected text
</p>
<script>
getSelection().removeAllRanges();
let r = document.createRange();
r.selectNode(document.documentElement);
getSelection().addRange(r);
</script>