17 lines
531 B
HTML
17 lines
531 B
HTML
<style>
|
|
div { width: 0px; }
|
|
span { text-decoration: underline; cursor: hand; }
|
|
</style>
|
|
<script>
|
|
function toggleFullScreen() {
|
|
if (document.webkitIsFullScreen)
|
|
document.webkitCancelFullScreen();
|
|
else
|
|
document.getElementsByTagName('div')[0].webkitRequestFullscreen();
|
|
}
|
|
</script>
|
|
<body>
|
|
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>
|
|
<div>
|
|
</div>
|
|
</body> |