summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/804323-1.html
blob: 8a19fc745b7d3011ad994f0581da21f43348ba39 (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
<!DOCTYPE HTML>
<html>
<head>
<style>
body { margin:0; padding:0; overflow:hidden; }
#new {
  position: absolute;
  left: 100px;
  top: 100px;
  width: 100px;
  height: 100px;
  background: yellow;
}
</style>
</head>
<body>
<div id="new" style="display:none"></div>
<script>
document.body.getBoundingClientRect().height;
document.body.style.transform = "translateX(100px)";
document.body.getBoundingClientRect().width;
document.getElementById("new").style.display = "";
</script>
</body>
</html>