summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/retained-dl-remove-for-ancestor-change-1.html
blob: 0b5fd4c08f3f38a320d447bec047f9a3646962f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html class="reftest-wait">
<head>
</head>
<body>
    <div id="container" style="height: 100px; overflow: hidden;">
    	<div id="spacer" style="height: 50px;"></div>
    	<div id="second" style="background-color:red; width: 10px; height: 10px;"></div>
    </div>
</body>
<script>
function doTest() {
  document.getElementById("container").style.height = "40px";
  document.documentElement.removeAttribute("class");
}

window.addEventListener("MozReftestInvalidate", doTest);
</script>
</html>