Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>caret-shape block color is the same as what is specified by caret-color property</title>
<link rel=match href="caret-shape-block-color-001-ref.html">
<meta name="assert"
content="Test checks that caret-shape block color is the same as the value of caret-color property when specified">
<style>
div {
font-size: 5em;
}
#target {
caret-color: lime;
caret-shape: block;
caret-animation: manual;
}
#target:focus {
outline: none;
}
</style>
<div id="target" contenteditable>abc</div>
<script>
target.focus();
</script>