Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / layer-creation / fixed-position-out-of-view-scaled-iframe.html
blob740e2fb131d14cb3825fe6b3c89ba5c599881735
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
9 if (window.internals && window.eventSender) {
10 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
12 addEventListener("load", function() {
13 window.internals.setPageScaleFactor(0.5);
14 setTimeout(function() {
15 var layerTreeScaledDown = internals.layerTreeAsText(document.getElementById("iframe").contentDocument);
17 window.internals.setPageScaleFactor(1.5);
18 setTimeout(function() {
19 var layerTreeScaledUp = internals.layerTreeAsText(document.getElementById("iframe").contentDocument);
20 // Because logical size of the frame is unchanged, the layer tree in the frame should not be affected by the page scale.
21 document.getElementById("result").innerText =
22 layerTreeScaledUp == layerTreeScaledDown ? "PASS" : "FAIL";
23 testRunner.notifyDone();
24 }, 0);
25 }, 0);
26 }, false);
28 </script>
29 </head>
30 <body>
31 <iframe id="iframe" src="resources/fixed-position-out-of-view-frame.html" style="width: 800px; height: 600px"></iframe>
32 <pre id="result"></pre>
33 </body>
34 </html>