Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / opacity-transition-zindex.html
blob97882f03255c16513d133f31b48a49339cf1842d
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <style>
6 .container {
7 position: relative;
8 height: 300px;
9 width: 300px;
10 margin: 10px;
11 background-color: green;
12 -webkit-transition-property: opacity;
13 -webkit-transition-timing-function: linear;
14 -webkit-transition-duration: 5s;
17 #first {
18 opacity: 0.5;
21 .box {
22 position: absolute;
23 left: 10px;
24 top: 10px;
25 height: 200px;
26 width: 200px;
27 background-color: blue;
30 .indicator {
31 position: absolute;
32 top: 150px;
33 left: 150px;
34 height: 100px;
35 width: 100px;
36 background-color: orange;
37 z-index: -1;
39 </style>
40 <script>
41 if (window.testRunner)
42 testRunner.waitUntilDone();
44 function runTest()
46 var container = document.getElementById('first');
47 container.style.opacity = 1;
49 // dump the tree in the middle of the transition
50 if (window.internals) {
51 window.internals.forceCompositingUpdate(document);
52 window.internals.pauseAnimations(2.5);
54 if (window.testRunner) {
55 testRunner.notifyDone();
58 // FIXME: this should use runTransitionTest().
59 window.addEventListener('load', runTest, false);
60 </script>
61 </head>
62 <body>
64 <div class="container" id="first">
65 <div class="box"></div>
66 <div class="indicator"></div>
67 </div>
69 </body>
70 </html>