summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug1896051-ref.html
blob: 39b26f148dca21a2b568eb3536ea51ab9befd88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html class="reftest-wait">
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<style>
  textarea {
    font: 13px / 1 monospace;
    border: 1px solid;
    padding: 0;
    overflow: hidden;
    resize: none;
  }
</style>
<textarea rows=5>
a
b
c
d
</textarea>
<script>
SimpleTest.waitForFocus(function() {
  let textarea = document.querySelector("textarea");
  textarea.focus();
  textarea.selectionStart = textarea.selectionEnd = textarea.value.length;
  setTimeout(() => {
    document.documentElement.removeAttribute("class");
  }, 0);
});
</script>