tor-browser

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

bug503399-ref.html (1138B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <head>
      4  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      5  <title>Testcase for bug 503399</title>
      6  <style type="text/css">
      7    html, body {
      8      color: black;
      9      background-color: white;
     10      font: 16px monospace;
     11    }
     12    p {
     13      text-align: justify;
     14      max-width: 180px;
     15      height: 1em;
     16      overflow: hidden;
     17      position: relative;
     18    }
     19    span {
     20      display: inline-block;
     21      border-left: 1px solid black;
     22      position: absolute;
     23      height: 100%;
     24    }
     25  </style>
     26  <script>
     27    var done = false;
     28    function runTest(p) {
     29      if (done)
     30        return;
     31      try {
     32        getSelection().collapse(p.childNodes[0], 14);
     33      } catch (e) {}
     34      document.documentElement.removeAttribute('class');
     35      done = true;
     36    }
     37  </script>
     38 </head>
     39 <body onload="var p = document.getElementsByTagName('p')[0]; p.focus(); setTimeout(function(){runTest(p)},1000)">
     40  <p onfocus="runTest(this)" contentEditable="true">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;<span></span> &nbsp;&nbsp; &nbsp;&nbsp;</p>
     41 </body>
     42 </html>