Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / fullscreen / full-screen-flash.html
blob67659b27400d29bd73091076b51cb6b10ed1d6c3
1 <style>
2 body { background: green; color: white; }
3 body:-webkit-full-screen-ancestor { background: red; }
4 span { text-decoration: underline; cursor: hand; }
5 div {
6 background: blue;
7 width: 200px;
8 height: 100px;
10 div:-webkit-full-screen {
11 width: 100%;
12 height: 100%;
14 </style>
15 <script>
16 function toggleFullScreen() {
17 if (document.webkitIsFullScreen)
18 document.webkitCancelFullScreen();
19 else
20 document.getElementsByTagName('div')[0].webkitRequestFullscreen();
22 </script>
23 <body>
24 This tests that the page does not have a visible "flash" when finishing the exit full screen animation.
25 <span onclick="toggleFullScreen()">Click to toggle full screen.</span>
26 <div>
27 </div>
28 </body>