5 var runPixelTests
= true;
8 var iframe
= document
.getElementById('block1');
9 var element
= iframe
.contentDocument
.documentElement
;
10 waitForEventAndEnd(element
, 'webkitfullscreenchange');
11 runWithKeyDown(goFullScreen
);
14 function goFullScreen() {
15 var iframe
= document
.getElementById('block1');
16 var element
= iframe
.contentDocument
.documentElement
;
17 element
.webkitRequestFullScreen();
20 <script src=
"full-screen-test.js"></script>
25 border:
4px solid darkgreen;
26 background-color: green;
32 border:
4px solid darkred;
33 background-color: red;
41 <body onload=
"init()">
42 <div>This tests that an element with a positive z-index appears behind the full screen element.
43 After entering full screen mode, the whole screen should be white.
44 Click
<button onclick=
"goFullScreen()">go full screen
</button> to run the test.
</div>
45 <div id=
"block2"></div>
46 <iframe allowfullscreen
src=
"resources/empty.html" id=
"block1"></iframe>