blob: f814dd67f352f471415eadb5630931f65fc778ba [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: color-filter affects caret-color</title>
<link rel="author" title="Apple" href="http://www.apple.com/">
<link rel="match" href="color-filter-caret-color-expected.html">
<meta name="assert" content="color-filter affects caret-color">
<style>
#test-container {
height: 50px;
width: 50px;
overflow: hidden;
border: 1px solid black;
}
#test {
color-filter: invert();
background-color: white;
transform-origin: left top;
transform: scale(50, 50);
font-size: 10px; /* Needed for the caret to render in Firefox. */
caret-color: rgb(255, 128, 255);
}
</style>
</head>
<body>
<p>The caret should show as a green flashing square below.</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>