summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/geometry/fixed-position-iframe-composited-page-scale.html
blob: 85b48e06af904580511c7b29b69109ead62adaac (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
<!DOCTYPE html>
<html>
<head>
<style>
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}
.fixed-no-z-index {
  position: absolute;
  left: 10px;
}
.fixed-with-z-index {
  position: fixed;
  z-index: 1;
  left: 10px;
}
</style>
<script>
  if (window.internals && window.eventSender) {
    window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
    window.internals.setPageScaleFactor(2);
  }
  function test() {
    if (window.testRunner)
      testRunner.dumpAsTextWithPixelResults();

    var d = document.getElementById('frame').contentDocument.open();
    d.write("<div style='position:fixed; z-index: 1; left; 10px;'>TEST</div>");
    d.close();
  }
</script>
</head>
<body onload="test();" style="width:2000px;height:2000px;">
<div class="fixed-no-z-index">TEST</div><br>
<iframe id="frame"></iframe>
</body>
</html>