Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / fullscreen / full-screen-zero-width.html
blobf436b589c2bdc4240ab45ccc1eb9720216fdd78c
1 <style>
2 div { width: 0px; }
3 span { text-decoration: underline; cursor: hand; }
4 </style>
5 <script>
6 function toggleFullScreen() {
7 if (document.webkitIsFullScreen)
8 document.webkitCancelFullScreen();
9 else
10 document.getElementsByTagName('div')[0].webkitRequestFullscreen();
12 </script>
13 <body>
14 This tests that an element with a 0px width will not cause the window to disappear when entering full screen. <span onclick="toggleFullScreen()">Click to toggle full screen.</span>
15 <div>
16 </div>
17 </body>