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