blob: baf36b7f5d2e340d50ea03c6ae39b367e5f21b67 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#test-container {
height: 50px;
width: 50px;
overflow: hidden;
}
#test {
background-color: white;
color: red;
caret-color: green;
transform-origin: left top;
transform: scale(50, 50);
font-size: 10px; /* Needed for the caret to render in Firefox. */
}
#test > span {
background-color: inherit;
caret-color: auto;
}
</style>
</head>
<body>
<p>Tests that "caret-color: auto" behaves identical to omitting property caret-color.</p>
<div id="test-container">
<div id="test" contenteditable="true">
<span>&nbsp;<!-- Needed for the caret to render in Firefox. --></span>
</div>
</div>
<script>
document.getElementById("test").focus();
window.getSelection().modify("move", "left", "character"); // Place the caret at the start of the <span>.
</script>
</body>
</html>