| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script type="text/javascript"> | |
| 4 function test() | |
| 5 { | |
| 6 if (window.internals) | |
| 7 internals.settings.setFrameFlatteningEnabled(true); | |
| 8 // Force synchronous layout. | |
| 9 document.body.offsetHeight; | |
| 10 } | |
| 11 </script> | |
| 12 </head> | |
| 13 <body onload="test()"> | |
| 14 <style>body { background-color: green; }</style> | |
| 15 <p>Test for iframe flattening. The flattening only works inside the DRT. | |
| 16 <p>This inner frame should be 400px in each direction, disregarding the | |
| 17 border, and it must not be scrollable or have scrollbars. | |
| 18 | |
| 19 <p><iframe width="200px" height="20%" scrolling=auto src="data:text/html, | |
| 20 <style>body { background-color: red; }</style> | |
| 21 <body> | |
| 22 <div style='position: absolute; width: 400px; height: 400px; left: 0
; top: 0px;'></div> | |
| 23 </body> | |
| 24 "></iframe> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |