3 var runPixelTests
= true;
5 <script src=
"full-screen-test.js"></script>
12 background-color: red;
18 background-color: lightblue;
22 background-color: lightgreen;
26 <div>This layout test checks that the offset positions of the blue and green divs does not change when the red div enters full-screen mode. Press
<button onclick=
"document.getElementById('float').webkitRequestFullScreen()">go full-screen
</a> to begin.
</div>
27 <div id=
"float"></div>
28 <div id=
"one">One
</div>
30 <span id=
"two">Two
</span>
33 var fullscreenChanged = function(event
)
38 document
.onwebkitfullscreenchange
= fullscreenChanged
;
40 var div
= document
.getElementById("float");
42 var divEnteredFullScreen = function()
44 if (document
.webkitCurrentFullScreenElement
== div
) {
45 callback
= cancelledFullScreen
;
46 runWithKeyDown(function(){document
.webkitCancelFullScreen()});
50 var cancelledFullScreen = function()
52 if (document
.webkitCurrentFullScreenElement
== null) {
58 callback
= divEnteredFullScreen
;
59 runWithKeyDown(function(){div
.webkitRequestFullScreen()});