summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug646382-2-ref.html
blob: 22aa1b7d1d4ba59c1c6cd0fb8e00f73824a4e771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html class="reftest-wait">
  <body onload="start()">
    <textarea dir="rtl" onfocus="done()"
              style="-moz-appearance: none;
              unicode-bidi: bidi-override;">s</textarea>
    <script>
      var textarea = document.querySelector("textarea");
      function start() {
        textarea.focus();
        textarea.selectionStart = 1; // place caret after the letter
        textarea.selectionEnd = 1;
      }
      function done() {
        document.documentElement.removeAttribute("class");
      }
    </script>
  </body>
</html>