summaryrefslogtreecommitdiffstats
path: root/layout/reftests/transform-3d/transform-geometry-1-ref.html
blob: c9c03ece43b777a2120b834764823775ee2e4a66 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<style type="text/css">
#parent {
  width: 400px;
  height: 400px;
  transform-style: flat;
}

#child {
  width: 400px;
  height: 400px;
  overflow: scroll;
}

.box {
  width: 400px;
  height: 300px;
  background-color: red;
}
</style>

</head>
<body>

<div id="parent">
  <div id="child">
    <div class="box"></div>
    <div class="box"></div>
  </div>
</div>

<script>
function doTest() {
  document.documentElement.removeAttribute("class");
  document.getElementById("child").scrollTop = 200;
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>

</body>
</html>