Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / geometry / fixed-position-iframe-composited-page-scale-down.html
blobb9d49620af67952635a01fb5ec1b9fb5791e7870
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 ::-webkit-scrollbar {
6 width: 0px;
7 height: 0px;
9 .fixed-no-z-index {
10 position: absolute;
11 left: 10px;
13 .fixed-with-z-index {
14 position: fixed;
15 z-index: 1;
16 left: 10px;
18 </style>
19 <script>
20 if (window.internals && window.eventSender) {
21 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
22 window.internals.setPageScaleFactorLimits(0.5, 0.5);
23 window.internals.setPageScaleFactor(0.5);
25 function test() {
26 if (window.testRunner)
27 testRunner.dumpAsTextWithPixelResults();
29 var d = document.getElementById('frame').contentDocument.open();
30 d.write("<div style='position:fixed; z-index: 1; left; 10px;'>TEST</div>");
31 d.close();
33 </script>
34 </head>
35 <body onload="test();" style="width:2000px;height:2000px;">
36 <div class="fixed-no-z-index">TEST</div><br>
37 <iframe id="frame"></iframe>
38 </body>
39 </html>