summaryrefslogtreecommitdiff
path: root/layout/reftests/bugs/389224-1.html
blob: 7fe96421100bc64d74d213ba272e2f64737d2839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<div id="d" style="position:absolute; left:10px; top:10px; width:10px; height:10px; clip:rect(auto,100px,50px,auto)">
  <div style="width:100px; height:100px; background:lime;"></div>
</div>
<script>
var d = document.getElementById("d");
function doTest() {
  d.style.clip = "";
  document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>