Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-render-inline.html
blobceb3113eb00c76c22ead70248cedaaa4d02b41f1
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div>a<span>b<div>c</div>d</span>e</div>
5 <script>
6 // This test turns fullscreen on and off quickly,
7 // then see if it renderes just like as before.
8 if (window.testRunner)
9 testRunner.waitUntilDone();
10 document.body.offsetTop;
11 var span = document.getElementsByTagName('span')[0];
13 var fullscreenChangeEvent = function(event) {
14 if (document.webkitIsFullScreen) {
15 setTimeout(function () {
16 document.webkitCancelFullScreen();
17 }, 0);
18 } else {
19 if (window.testRunner)
20 testRunner.notifyDone();
24 document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent);
26 document.addEventListener('keydown', function () {
27 span.webkitRequestFullScreen();
28 });
29 if (window.eventSender)
30 eventSender.keyDown('a');
31 </script>
32 </body>
33 </html>