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-42.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - visited caret-color.</title>
<link rel=match href="forced-colors-mode-42-ref.html">
<style>
a {
caret-color: orange;
}
a:visited {
caret-color: red;
}
[contenteditable] {
outline: none;
}
</style>
<a id="link" contenteditable href="">link</a>
<script>
window.onload = function() {
document.getElementById("link").focus();
}
</script>