3 <script type="text/javascript">
4 if (window.layoutTestController) {
5 layoutTestController.waitUntilDone();
6 layoutTestController.setFrameFlatteningEnabled(true);
11 setTimeout(function() {
12 if (window.layoutTestController)
13 layoutTestController.notifyDone();
18 <body onload="test()">
19 <style>body { background-color: green; }</style>
20 <p>Test for iframe flattening. The flattening only works inside the DRT.
21 <p>This inner frame should be 400px in each direction, disregarding the
22 border, and it must not be scrollable or have scrollbars.
24 <p><iframe width="20%" height="20%" scrolling=auto src="data:text/html,
25 <style>body { background-color: red; }</style>
27 <div style='position: absolute; width: 400px; height: 400px; left: 0; top: 0px;'></div>