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