5 var runPixelTests
= true;
8 waitForEventAndEnd(document
, 'webkitfullscreenchange');
9 runWithKeyDown(goFullScreen
);
12 function goFullScreen() {
13 document
.getElementById('block1').webkitRequestFullScreen();
16 <script src=
"full-screen-test.js"></script>
21 border:
4px solid darkgreen;
22 background-color: green;
29 border:
4px solid darkred;
30 background-color: red;
38 <body onload=
"init()">
39 <div>This tests that an element with a positive z-index appears behind the full screen element.
40 After entering full screen mode, only a green box should be visible.
41 Click
<button onclick=
"goFullScreen()">go full screen
</button> to run the test.
</div>
42 <div id=
"block2"></div>
43 <div id=
"block1"></div>