OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script type="text/javascript"> | |
4 if (window.testRunner && window.internals) { | |
5 testRunner.waitUntilDone(); | |
6 internals.settings.setFrameFlatteningEnabled(true); | |
7 } | |
8 | |
9 function test() | |
10 { | |
11 setTimeout(function() { | |
12 scrollTo(1200, 0); | |
13 document.body.offsetWidth; | |
14 if (window.testRunner) | |
15 testRunner.notifyDone(); | |
16 }, 0); | |
17 } | |
18 </script> | |
19 </head> | |
20 <body onload="test()"> | |
21 <div> | |
22 <p>Test that an off-screen iframe with positive coordinates is flattened
, and so are its child frames. | |
23 </div> | |
24 | |
25 <p><iframe width="200" height="200" style='border: 0px; position: absolute;
left: 1200px; top: 0px;' src="data:text/html, | |
26 <style>body { background-color: blue; }</style> | |
27 <body> | |
28 <iframe src='data:text/html, <style>div {width:800px;background-colo
r:silver;}</style><div>This is a nested frame that is flattened and scrolled int
o view.</div>'></iframe> | |
29 </body> | |
30 "></iframe> | |
31 </body> | |
32 </html> | |
OLD | NEW |