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

Side by Side Diff: LayoutTests/fullscreen/full-screen-fixed-pos-parent.html

Issue 206463009: Rip out Settings::fixedPositionCreatesStackingContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <style> 3 <style>
4 #bad { 4 #bad {
5 position: fixed; 5 position: fixed;
6 top: 0px; 6 top: 0px;
7 left: 0px; 7 left: 0px;
8 background-color: red; 8 background-color: red;
9 width: 100%; 9 width: 100%;
10 height: 100%; 10 height: 100%;
11 } 11 }
12 12
13 #fixed-container { 13 #fixed-container {
14 position: fixed; 14 position: fixed;
15 top: 0px; 15 top: 0px;
16 left: 0px; 16 left: 0px;
17 z-index: 0; 17 z-index: 0;
18 } 18 }
19 19
20 #fullscreenme { 20 #fullscreenme {
21 height: 400px; 21 height: 400px;
22 width: 400px; 22 width: 400px;
23 border: 0px; 23 border: 0px;
24 } 24 }
25 </style> 25 </style>
26 </head> 26 </head>
27 <script src="full-screen-test.js"></script> 27 <script src="full-screen-test.js"></script>
28 <script> 28 <script>
29 if (window.internals)
30 window.internals.settings.setFixedPositionCreatesStackingContext(true);
31
32 function doTest() { 29 function doTest() {
33 if (window.testRunner) { 30 if (window.testRunner) {
34 testRunner.dumpAsTextWithPixelResults(); 31 testRunner.dumpAsTextWithPixelResults();
35 testRunner.waitUntilDone(); 32 testRunner.waitUntilDone();
36 } 33 }
37 document.body.offsetTop; 34 document.body.offsetTop;
38 var fullscreen = document.getElementById('fullscreenme'); 35 var fullscreen = document.getElementById('fullscreenme');
39 36
40 var fullscreenChangeEvent = function(event) { 37 var fullscreenChangeEvent = function(event) {
41 if (window.testRunner) 38 if (window.testRunner)
(...skipping 12 matching lines...) Expand all
54 window.addEventListener("load", doTest, false); 51 window.addEventListener("load", doTest, false);
55 </script> 52 </script>
56 <body> 53 <body>
57 <!-- when full screening the iframe, bad should not be visible --> 54 <!-- when full screening the iframe, bad should not be visible -->
58 <div id="fixed-container"> 55 <div id="fixed-container">
59 <iframe id="fullscreenme" src="resources/green.html"></iframe> 56 <iframe id="fullscreenme" src="resources/green.html"></iframe>
60 </div> 57 </div>
61 <div id="bad"></div> 58 <div id="bad"></div>
62 </body> 59 </body>
63 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698