Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 will-change: transform; | |
|
philipj_slow
2016/02/01 06:45:14
You probably don't need a test using an iframe to
| |
| 24 } | 25 } |
| 25 </style> | 26 </style> |
| 26 </head> | 27 </head> |
| 27 <script src="full-screen-test.js"></script> | 28 <script src="full-screen-test.js"></script> |
| 28 <script> | 29 <script> |
| 29 function doTest() { | 30 function doTest() { |
| 30 if (window.testRunner) { | 31 if (window.testRunner) { |
| 31 testRunner.dumpAsTextWithPixelResults(); | 32 testRunner.dumpAsTextWithPixelResults(); |
| 32 testRunner.waitUntilDone(); | 33 testRunner.waitUntilDone(); |
| 33 } | 34 } |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 50 window.addEventListener("load", doTest, false); | 51 window.addEventListener("load", doTest, false); |
| 51 </script> | 52 </script> |
| 52 <body> | 53 <body> |
| 53 <!-- when full screening the iframe, bad should not be visible --> | 54 <!-- when full screening the iframe, bad should not be visible --> |
| 54 <div id="fixed-container"> | 55 <div id="fixed-container"> |
| 55 <iframe id="fullscreenme" src="resources/green.html"></iframe> | 56 <iframe id="fullscreenme" src="resources/green.html"></iframe> |
| 56 </div> | 57 </div> |
| 57 <div id="bad"></div> | 58 <div id="bad"></div> |
| 58 </body> | 59 </body> |
| 59 </html> | 60 </html> |
| OLD | NEW |