5 var runPixelTests
= true;
8 document
.onwebkitfullscreenchange = function() {
9 document
.onwebkitfullscreenchange
= endTest
;
10 document
.webkitCancelFullScreen();
12 function goFullScreen() {
13 document
.getElementById('block1').webkitRequestFullScreen();
15 runWithKeyDown(goFullScreen
);
18 <script src=
"full-screen-test.js"></script>
23 border:
4px solid darkgreen;
24 background-color: green;
29 border:
4px solid darkred;
30 background-color: red;
42 <body onload=
"init()">
43 <div>This tests that an element with a positive z-index appears behind the full screen element.
44 After entering full screen mode, the green box should not be obscured by the red box.
45 Click
<button onclick=
"goFullScreen()">go full screen
</button> to run the test.
</div>
46 <div id=
"block2"></div>
48 <div id=
"block1"></div>