| body { background: green; color: white; } |
| document:-webkit-full-screen-document > body { background: red; } |
| span { text-decoration: underline; cursor: hand; } |
| div:-webkit-full-screen { |
| function toggleFullScreen() { |
| if (document.webkitIsFullScreen) |
| document.webkitCancelFullScreen(); |
| document.getElementsByTagName('div')[0].webkitRequestFullscreen(); |
| This tests that the page does not have a visible "flash" when finishing the exit full screen animation. |
| <span onclick="toggleFullScreen()">Click to toggle full screen.</span> |