upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / fullscreen / full-screen-render-inline.html
1 <style>
2 body {
3     font-family: ahem;
4     -webkit-font-smoothing: none;
5 }
6 </style>
7 <summary>a<span>b<div>c</div>d</span>e</summary>
8 <script>
9     if ("webkitRequestFullScreen" in Element.prototype) {
10         if (window.layoutTestController)
11             layoutTestController.waitUntilDone();
12         document.body.offsetTop;
13         var span = document.getElementsByTagName('span')[0];
14
15         var fullscreenChangeEvent = function(event) {
16             if (document.webkitIsFullScreen) {
17                 setTimeout(function () {
18                     document.webkitCancelFullScreen();
19                 }, 0)
20             } else {
21                 if (window.layoutTestController)
22                     layoutTestController.notifyDone();
23             }
24         };
25
26         document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent);
27
28         document.addEventListener('keydown', function () {
29             span.webkitRequestFullScreen();
30         });
31         if (window.eventSender)
32             eventSender.keyDown('a');
33     }
34 </script>