2011-01-25 00:41:56 -08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
div {
|
|
|
|
position: absolute;
|
2011-01-25 03:23:01 -08:00
|
|
|
padding: 2px;
|
2011-01-25 00:41:56 -08:00
|
|
|
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, false);
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|