| testRunner.waitUntilDone(); |
| window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true); |
| addEventListener("load", function() { |
| window.internals.setPageScaleFactor(0.5, 0, 0); |
| var layerTreeScaledDown = internals.layerTreeAsText(document.getElementById("iframe").contentDocument); |
| window.internals.setPageScaleFactor(1.5, 0, 0); |
| var layerTreeScaledUp = internals.layerTreeAsText(document.getElementById("iframe").contentDocument); |
| // Because logical size of the frame is unchanged, the layer tree in the frame should not be affected by the page scale. |
| document.getElementById("result").innerText = |
| layerTreeScaledUp == layerTreeScaledDown ? "PASS" : "FAIL"; |
| <iframe id="iframe" src="resources/fixed-position-out-of-view-frame.html" style="width: 800px; height: 600px"></iframe> |