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 waitForEventAndEnd(document, 'webkitfullscreenchange');
14 runWithKeyDown(goFullScreen);
18 function goFullScreen() {
19 document.getElementById('block1').webkitRequestFullScreen();
22 <script src="full-screen-test.js"></script>
27 border: 4px solid darkgreen;
28 background-color: green;
35 border: 4px solid darkred;
36 background-color: red;
44 <body onload="init()">
45 <div>This tests that an element with a positive z-index appears behind the full screen element.
46 After entering full screen mode, only a green box should be visible.
47 Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
48 <div id="block2"></div>
49 <div id="block1"></div>