tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

caret-shape-block-001-rtl-sideways-lr.html (972B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>caret-shape block RTL 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-rtl-sideways-lr-ref.html">
      7 <meta name="assert" content="Test checks that caret-shape block works as expected in RTL in sideways-lr writing mode">
      8 <script src="/common/reftest-wait.js"></script>
      9 <style>
     10  #wrapper {
     11    writing-mode: sideways-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>