3 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
11 if (window
.internals
) {
12 internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
16 if (window
.testRunner
)
17 testRunner
.waitUntilDone();
18 runAfterLayoutAndPaint(function() {
19 var iframe
= document
.getElementById("parent-iframe");
20 var box
= iframe
.contentDocument
.getElementById("box");
21 box
.setAttribute("style", "height:500px;width:500px;");
22 iframe
.contentDocument
.body
.offsetWidth
; // See bug 41999
23 if (window
.testRunner
) {
24 testRunner
.dumpAsText();
25 document
.getElementById('layertree').innerText
= window
.internals
.layerTreeAsText(document
);
26 testRunner
.notifyDone();
30 window
.addEventListener("load", doTest
, false);
34 <iframe id=
"parent-iframe" src=
"resources/subframe-small.html"></iframe>
35 <pre id=
"layertree"></p>