| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <style> | 3 <style> |
| 4 #bad { | 4 #container { |
| 5 position: fixed; | |
| 6 top: 0px; | |
| 7 left: 0px; | |
| 8 background-color: red; | |
| 9 width: 100%; | |
| 10 height: 100%; | |
| 11 } | |
| 12 | |
| 13 #fixed-container { | |
| 14 position: fixed; | |
| 15 top: 0px; | |
| 16 left: 0px; | |
| 17 z-index: 0; | |
| 18 } | |
| 19 | |
| 20 #fullscreenme { | |
| 21 height: 400px; | |
| 22 width: 400px; | |
| 23 border: 0px; | |
| 24 will-change: transform; | 5 will-change: transform; |
| 25 } | 6 } |
| 26 </style> | 7 </style> |
| 27 </head> | 8 </head> |
| 28 <script src="full-screen-test.js"></script> | 9 <script src="full-screen-test.js"></script> |
| 29 <script> | 10 <script> |
| 30 function doTest() { | 11 function doTest() { |
| 31 if (window.testRunner) { | 12 if (window.testRunner) { |
| 32 testRunner.dumpAsTextWithPixelResults(); | 13 testRunner.dumpAsTextWithPixelResults(); |
| 33 testRunner.waitUntilDone(); | 14 testRunner.waitUntilDone(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 44 document.addEventListener('keydown', function () { | 25 document.addEventListener('keydown', function () { |
| 45 fullscreen.webkitRequestFullScreen(); | 26 fullscreen.webkitRequestFullScreen(); |
| 46 | 27 |
| 47 }); | 28 }); |
| 48 if (window.eventSender) | 29 if (window.eventSender) |
| 49 eventSender.keyDown('a'); | 30 eventSender.keyDown('a'); |
| 50 } | 31 } |
| 51 window.addEventListener("load", doTest, false); | 32 window.addEventListener("load", doTest, false); |
| 52 </script> | 33 </script> |
| 53 <body> | 34 <body> |
| 54 <!-- when full screening the iframe, bad should not be visible --> | 35 <div id="container"> |
| 55 <div id="fixed-container"> | |
| 56 <iframe id="fullscreenme" src="resources/green.html"></iframe> | 36 <iframe id="fullscreenme" src="resources/green.html"></iframe> |
| 57 </div> | 37 </div> |
| 58 <div id="bad"></div> | |
| 59 </body> | 38 </body> |
| 60 </html> | 39 </html> |
| OLD | NEW |