summaryrefslogtreecommitdiffstats
path: root/editor/reftests/969773-ref.html
blob: 32ffae7c12a6f3c5f0fbb980cabc220a2af71f7d (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
<!DOCTYPE html>
<html class="reftest-wait">
<head>
  <meta charset="utf-8">
  <title>Contenteditable Selection Test Case</title>
  <script>
    function runTests() {
      var text = document.getElementById("text");

      text.focus();

      setTimeout(function () {
        document.body.offsetHeight;
        document.documentElement.removeAttribute('class');
      }, 0);
    }
    document.addEventListener('MozReftestInvalidate', runTests);
  </script>
</head>
<body>
    <div>This is a contenteditable.</div>
    <div id="text" tabindex="0">This is focusable text</div>
</body>
</html>