Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: LayoutTests/fast/frames/flattening/iframe-flattening-out-of-view.html

Issue 13963006: Remove frame flattening support as Chromium has no intention of using it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698