upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / fullscreen / full-screen-stacking-context.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script>
5             var runPixelTests = true;
6             
7             function init() {
8                 // Bail out early if the full screen API is not enabled or is missing:
9                 if (Element.prototype.webkitRequestFullScreen == undefined) {
10                     logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
11                     endTest();
12                 } else {
13                     waitForEventAndEnd(document, 'webkitfullscreenchange');
14                     runWithKeyDown(goFullScreen);
15                 }
16             }
17             
18             function goFullScreen() {
19                 document.getElementById('video').webkitRequestFullScreen();
20             }
21         </script>
22         <script src="full-screen-test.js"></script>
23         <style>
24             #one {
25                 width: 100px;
26                 height: 100px;
27                 position: relative;
28                 top: 50px;
29                 left: 50px;
30                 z-index: 1;
31                 opacity: 0.5;
32                 -webkit-transform: rotate(180);
33                 background-color: red;
34             }
35             #zero {
36                 position: relative;
37                 z-index: 0;
38             }
39             #video {
40                 width: 200px;
41                 height: 200px;
42                 background-color: black;
43             }
44         </style>
45     </head>
46     <body onload="init()">
47         <div>This tests that a full screen element in a lower stacking context blocks a sibling in a higher stacking context.  
48              After entering full screen mode, only a black box should be visible.
49              Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
50         <div id="one"></div>
51         <div id="zero">
52             <video id="video"></video>
53         </div>
54     </body>