caret-shape-block-001-rtl-vlr.html (964B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>caret-shape block RTL vertical-lr</title> 5 <link rel=help href="https://drafts.csswg.org/css-ui/#caret-shape"> 6 <link rel=match href="caret-shape-block-001-rtl-vlr-ref.html"> 7 <meta name="assert" content="Test checks that caret-shape block works as expected in RTL in vertical-lr writing mode"> 8 <script src="/common/reftest-wait.js"></script> 9 <style> 10 #wrapper { 11 writing-mode: vertical-lr; 12 width: stretch; 13 } 14 #target { 15 direction: rtl; 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">امتحان</div> 28 </div> 29 <script> 30 document.getElementById("target").focus(); 31 takeScreenshot(); 32 </script>