summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scrolling/propagated-overflow-style-2b.html
blob: c94ddedb2661d7f259a10440cc58f6ec9e5ec669 (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
<!DOCTYPE html>
<html class="reftest-wait">
<head>
  <title>
    Testcase with only one of [html,body] being scrollable,
    after html's "overflow" is reset dynamically.
  </title>
  <style>
    html {
      overflow: scroll;
    }
    body {
      overflow: scroll;
    }
  </style>
  <script>
    function doTest() {
      document.documentElement.style.overflow = "visible";
      document.documentElement.removeAttribute("class");
    }
    window.addEventListener("MozReftestInvalidate", doTest);
  </script>
</head>
<body>
</body>
</html>