caret-shape-block-001-vrl.html (921B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>caret-shape block vertical-rl</title> 5 <link rel=help href="https://drafts.csswg.org/css-ui/#caret-shape"> 6 <link rel=match href="caret-shape-block-001-vrl-ref.html"> 7 <meta name="assert" content="Test checks that caret-shape block works as expected in vertical-rl writing mode"> 8 <script src="/common/reftest-wait.js"></script> 9 <style> 10 #wrapper { 11 writing-mode: vertical-rl; 12 width: stretch; 13 } 14 #target { 15 font-size: 3em; 16 caret-color: lime; 17 caret-shape: block; 18 caret-animation: manual; 19 } 20 #target:focus { 21 outline: none; 22 } 23 </style> 24 <p>Test passes if, when the text below is focused for editing, the text insertion caret is a lime block.</p> 25 <div id="wrapper"> 26 <div id="target" contenteditable spellcheck="false">test</div> 27 </div> 28 <script> 29 document.getElementById("target").focus(); 30 takeScreenshot(); 31 </script>