5 var runPixelTests = true;
8 // Bail out early if the full screen API is not enabled or is missing:
9 if (Element.prototype.webkitRequestFullScreen == undefined) {
10 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
13 waitForEvent(document, 'webkitfullscreenchange', function() {
14 if (document.webkitIsFullScreen)
15 runWithKeyDown(function() { document.webkitCancelFullScreen(); });
20 runWithKeyDown(goFullScreen);
24 function goFullScreen() {
25 document.getElementById('block1').webkitRequestFullScreen();
28 <script src="full-screen-test.js"></script>
33 border: 4px solid darkgreen;
34 background-color: green;
39 border: 4px solid darkred;
40 background-color: red;
52 <body onload="init()">
53 <div>This tests that an element with a positive z-index appears behind the full screen element.
54 After entering full screen mode, the green box should not be obscured by the red box.
55 Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
56 <div id="block2"></div>
58 <div id="block1"></div>