Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-ui/caret-shape-block-color-001.html - WPT Dashboard Interop Dashboard
<!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>