summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-43-ref.html
blob: 0b98661896f6af563d4eeaf525b74bab09e6bdbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - caret-color.</title>
<style>
  div {
    caret-color: WindowText;
    forced-color-adjust: none;
  }
  [contenteditable] {
    outline: none;
  }
</style>
<div id="caret" contenteditable>The caret color should be overridden to currentColor</a>
<script>
  window.onload = function() {
    document.getElementById("caret").focus();
  }
</script>