Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>caret-shape block vertical-lr</title>
<link rel=match href="caret-shape-block-001-vlr-ref.html">
<meta name="assert" content="Test checks that caret-shape block works as expected in vertical-lr writing mode">
<script src="/common/reftest-wait.js"></script>
<style>
#wrapper {
writing-mode: vertical-lr;
width: stretch;
}
#target {
font-size: 3em;
caret-color: lime;
caret-shape: block;
caret-animation: manual;
}
#target:focus {
outline: none;
}
</style>
<p>Test passes if, when the text below is focused for editing, the text insertion caret is a lime block.</p>
<div id="wrapper">
<div id="target" contenteditable spellcheck="false">test</div>
</div>
<script>
document.getElementById("target").focus();
takeScreenshot();
</script>