Move internals.settings.setPageScaleFactor to internals.setPageScaleFactor
[WebKit-https.git] / LayoutTests / compositing / geometry / fixed-position-iframe-composited-page-scale-down.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .fixed-no-z-index {
6   position: absolute;
7   left: 10px;
8 }
9 .fixed-with-z-index {
10   position: fixed;
11   z-index: 1;
12   left: 10px;
13 }
14 </style>
15 <script>
16   function test() {
17     if (window.internals) {
18       window.internals.settings.setEnableCompositingForFixedPosition(true);
19       window.internals.setPageScaleFactor(0.5, 0, 0);
20     }
21     if (window.testRunner)
22       testRunner.dumpAsText(true);
23
24     var d = document.getElementById('frame').contentDocument.open();
25     d.write("<div style='position:fixed; z-index: 1; left; 10px;'>TEST</div>");
26     d.close();
27   }
28 </script>
29 </head>
30 <body onload="test();" style="width:2000px;height:2000px;">
31 <div class="fixed-no-z-index">TEST</div><br>
32 <iframe id="frame"></iframe>
33 </body>
34 </html>