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('video').webkitRequestFullScreen();
22 <script src="full-screen-test.js"></script>
32 -webkit-transform: rotate(180);
33 background-color: red;
42 background-color: black;
46 <body onload="init()">
47 <div>This tests that a full screen element in a lower stacking context blocks a sibling in a higher stacking context.
48 After entering full screen mode, only a black box should be visible.
49 Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
52 <video id="video"></video>