summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/geometry/fixed-position-transform-composited-page-scale-down.html
blob: be9d9cc333a1c87e731ec5430d488cf6dc4d8106 (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
<!DOCTYPE html>
<html>
<head>
<style>
.fixed-no-z-index {
  position: absolute;
  left: 10px;
  -webkit-transform: translateX(10px) rotate(20deg);
}
.fixed-with-z-index {
  position: fixed;
  z-index: 1;
  left: 10px;
  -webkit-transform: translateX(10px) rotate(20deg);
}
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}
</style>
<script>
  function scale() {
    if (window.internals)
      window.internals.setEnableCompositingForFixedPosition(document, true);
    if (window.layoutTestController) {
      layoutTestController.dumpAsText(true);
      eventSender.scalePageBy(0.5, 0, 0);
    }
  }
</script>
</head>
<body onload="scale();" style="width:2000px;height:2000px;">
<div class="fixed-no-z-index">TEST</div><br>
<div class="fixed-with-z-index">TEST</div>
</body>
</html>