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-002.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test caret-shape block color when there is no CSS color property specified</title>
<link rel=match href="caret-shape-block-color-002-ref.tentative.html">
<meta name="assert"
content="Test checks that caret-shape block color has an opacity of 0.5 of the default color when there is no CSS color property specified">
<style>
div {
font-size: 5em;
}
#target {
caret-shape: block;
caret-animation: manual;
}
#target:focus {
outline: none;
}
</style>
<div id="target" contenteditable>abc</div>
<script>
target.focus();
</script>