<!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>

