summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/619117-1.html
blob: 65607a0d16bdf29085402437e1f80669f02ec2b6 (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
27
28
29
30
31
32
<!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, false);
</script>
</body>
</html>