Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fullscreen / full-screen-zIndex.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script>
5             var runPixelTests = true;
6             
7             function init() {
8                 waitForEventAndEnd(document, 'webkitfullscreenchange');
9                 runWithKeyDown(goFullScreen);
10             }
11             
12             function goFullScreen() {
13                 document.getElementById('block1').webkitRequestFullScreen();
14             }
15         </script>
16         <script src="full-screen-test.js"></script>
17         <style>
18             #block1 {
19                 width: 200px;
20                 height: 100px;
21                 border: 4px solid darkgreen;
22                 background-color: green;
23                 z-index: 100;
24                 position: relative;
25             }
26             #block2 {
27                 width: 100px;
28                 height: 50px;
29                 border: 4px solid darkred;
30                 background-color: red;
31                 z-index: 500;
32                 position: relative;
33                 left: 50px;
34                 top: 25px;
35             }
36         </style>
37     </head>
38     <body onload="init()">
39         <div>This tests that an element with a positive z-index appears behind the full screen element.  
40              After entering full screen mode, only a green box should be visible.
41              Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
42         <div id="block2"></div>
43         <div id="block1"></div>
44     </body>