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();
31 <iframe id=
"iframe" src=
"resources/fixed-position-out-of-view-frame.html" style=
"width: 800px; height: 600px"></iframe>
32 <pre id=
"result"></pre>