Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /forced-colors-mode/forced-colors-mode-45.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - caret-color with system color.</title>
<link rel=match href="forced-colors-mode-45-ref.html">
<style>
div {
caret-color: GrayText;
}
[contenteditable] {
outline: none;
}
</style>
<div id="caret" contenteditable>The caret color should remain GrayText</a>
<script>
window.onload = function() {
document.getElementById("caret").focus();
}
</script>