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 <div> | |
15 <p>Test that an iframe with negative coordinates is not flattened, but a
n iframe with positive coordinates is, even if it is out of view. | |
16 </div> | |
17 | |
18 <!-- DRT size is 800x600 pixels, one needs to be flexible in order to use fr
ame flattening --> | |
19 <p><iframe width="25%" height="200" style='border: 0px; position: absolute;
left: 0px; top: -200px;' src="data:text/html, | |
20 <style>body { background-color: red; }</style> | |
21 <body> | |
22 <div style='position: absolute; width: 800px; height: 800px; left: 0
; top: 0px;'>You should not see me.</div> | |
23 </body> | |
24 "></iframe> | |
25 | |
26 <p><iframe width="25%" height="200" style='border: 0px; position: absolute;
left: 1200px; top: 0px;' src="data:text/html, | |
27 <style>body { background-color: blue; }</style> | |
28 <body> | |
29 <div style='position: absolute; width: 8000px; height: 800px; left:
0; top: 0px;'>You will not see me but you will see the horizontal scrollbar stre
ching.</div> | |
30 </body> | |
31 "></iframe> | |
32 </body> | |
33 </html> | |
OLD | NEW |