tor-browser

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

bug1354478-2.html (865B)


      1 <html class="reftest-wait">
      2  <head>
      3    <meta charset="utf-8">
      4    <style>
      5      textarea {
      6        inline-size: 200px;
      7        appearance: none;
      8        unicode-bidi: plaintext;
      9        outline-style: solid;
     10      }
     11      div {
     12        inline-size: 200px;
     13        block-size: 20px;
     14        position: relative;
     15        inset-block-start: -20px;
     16        background: silver;
     17      }
     18    </style>
     19    <script>
     20      function start() {
     21        var textarea = document.querySelector("textarea");
     22        textarea.selectionStart = 1; // place caret between the letters
     23        textarea.selectionEnd = 1;
     24        textarea.focus();
     25      }
     26      function done() {
     27        document.documentElement.removeAttribute("class");
     28      }
     29    </script>
     30  </head>
     31  <body onload="start()">
     32    <textarea dir="rtl" onfocus="done()">دد</textarea>
     33    <div></div>
     34  </body>
     35 </html>