summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/613433-2.html
blob: 9f962e2630e5547cad5d94b6efb300c61cb628e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <style>
      div {
        min-height: 36px;
        overflow-y: auto;
      }
    </style>
    <script>
      function test() {
        document.querySelector("div").focus();
      }
      function focusTriggered() {
        document.documentElement.removeAttribute("class");
      }
    </script>
  </head>
  <body onload="test()">
    <div contenteditable onfocus="focusTriggered()"></div>
  </body>
</html>