9 <script src=
"../../resources/js-test.js"></script>
11 window
.enablePixelTesting
= true;
13 if (window
.testRunner
)
14 testRunner
.waitUntilDone();
16 // Layout for the iframe will be scaled down to a quarter.
17 // It appears this bug will only manifest itself if layout for the
18 // iframe has not yet been computed. If we've already laid out
19 // the iframe, then CSSStyleSelector::styleForDocument does not appear
20 // to get called for the iframe.
23 function scalePage(scaleFactor
) {
24 if (window
.internals
) {
25 window
.internals
.setPageScaleFactor(scaleFactor
);
30 // Curiously, the document style for the iframe does not
31 // appear to be recalculated after this
33 document
.body
.offsetWidth
;
34 if (window
.testRunner
)
35 testRunner
.notifyDone();
38 <script src=
"../../resources/js-test.js"></script>
40 <body onload=
"test();">
41 <iframe id=
"frame" src=
"resources/iframe-content-scaling-bug-iframe.html" style=
"position: absolute; left: 0px; top: 0px; border: none; width: 300px; height: 300px;"></iframe>
42 <div id=
"rightbox" style=
"position: absolute; left: 300px; top: 0px; width: 300px; height: 300px; background-color: green;"></div>