| 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%; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 document.addEventListener('webkitfullscreenchange', fullscreenChangeEven
t); | 42 document.addEventListener('webkitfullscreenchange', fullscreenChangeEven
t); |
| 43 document.addEventListener('keydown', function () { | 43 document.addEventListener('keydown', function () { |
| 44 fullscreen.webkitRequestFullScreen(); | 44 fullscreen.webkitRequestFullScreen(); |
| 45 | 45 |
| 46 }); | 46 }); |
| 47 if (window.eventSender) | 47 if (window.eventSender) |
| 48 eventSender.keyDown('a'); | 48 eventSender.keyDown('a'); |
| 49 } | 49 } |
| 50 if ("webkitRequestFullScreen" in Element.prototype) | 50 window.addEventListener("load", doTest, false); |
| 51 window.addEventListener("load", doTest, false); | |
| 52 </script> | 51 </script> |
| 53 <body> | 52 <body> |
| 54 <!-- when full screening the iframe, bad should not be visible --> | 53 <!-- when full screening the iframe, bad should not be visible --> |
| 55 <div id="fixed-container"> | 54 <div id="fixed-container"> |
| 56 <iframe id="fullscreenme" src="resources/green.html"></iframe> | 55 <iframe id="fullscreenme" src="resources/green.html"></iframe> |
| 57 </div> | 56 </div> |
| 58 <div id="bad"></div> | 57 <div id="bad"></div> |
| 59 </body> | 58 </body> |
| 60 </html> | 59 </html> |
| OLD | NEW |