tor-browser

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

bug503399.html (1102B)


      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      position: absolute;
     22      height: 100%;
     23    }
     24  </style>
     25  <script>
     26    var done = false;
     27    function runTest(p) {
     28      if (done)
     29        return;
     30      try {
     31        getSelection().collapse(p.childNodes[0], 14);
     32      } catch (e) {}
     33      document.documentElement.removeAttribute('class');
     34      done = true;
     35    }
     36  </script>
     37 </head>
     38 <body onload="var p = document.getElementsByTagName('p')[0]; p.focus(); setTimeout(function(){runTest(p)},1000)">
     39  <p onfocus="runTest(this)" contentEditable="true">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;<span></span> &nbsp;&nbsp; &nbsp;&nbsp;</p>
     40 </body>
     41 </html>