tor-browser

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

caret-shape-block-empty-001.html (909B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>caret-shape block empty text</title>
      5 <link rel=help href="https://drafts.csswg.org/css-ui/#caret-shape">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
      7 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      8 <meta name="assert" content="Test checks that caret-shape block works as expected when there's no text">
      9 <script src="/common/reftest-wait.js"></script>
     10 <style>
     11  #target {
     12    font: 100px/1 Ahem;
     13    caret-color: green;
     14    caret-shape: block;
     15    caret-animation: manual;
     16    width: 1ch;
     17    background: red;
     18  }
     19  #target:focus {
     20    outline: none;
     21  }
     22 </style>
     23 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     24 <div id="target" contenteditable spellcheck="false"></div>
     25 <script>
     26  document.getElementById("target").focus();
     27  takeScreenshot();
     28 </script>