tor-browser

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

caret-shape-block-001-sideways-rl.html (929B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>caret-shape block sideways-rl</title>
      5 <link rel=help href="https://drafts.csswg.org/css-ui/#caret-shape">
      6 <link rel=match href="caret-shape-block-001-sideways-rl-ref.html">
      7 <meta name="assert" content="Test checks that caret-shape block works as expected in sideways-rl writing mode">
      8 <script src="/common/reftest-wait.js"></script>
      9 <style>
     10  #wrapper {
     11    writing-mode: sideways-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>