gecko-dev/layout/reftests/bugs/619117-1.html
Florian Quèze 85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00

33 lines
628 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
div {
position: absolute;
padding: 2px;
left: 100px;
top: 700px;
width: 100px;
height: 100px;
background: yellow;
-moz-transform: scale(1.5);
transform: scale(1.5);
}
body.toggle div {
-moz-transform: translate(0, -400px);
transform: translate(0, -400px);
}
</style>
</head>
<body>
<div>Hello</div>
<script>
function doTest() {
document.body.setAttribute("class", "toggle");
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>
</body>
</html>