OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 #slidein { | 3 #slidein { |
4 width: 200px; | 4 width: 200px; |
5 height: 200px; | 5 height: 200px; |
6 -webkit-transform: translate3d(0, 0, 0); | 6 transform: translate3d(0, 0, 0); |
7 } | 7 } |
8 | 8 |
9 #header { | 9 #header { |
10 position: relative; | 10 position: relative; |
11 height: 50px; | 11 height: 50px; |
12 z-index: 1; | 12 z-index: 1; |
13 background-color: green; | 13 background-color: green; |
14 } | 14 } |
15 | 15 |
16 #section { | 16 #section { |
17 position: absolute; | 17 position: absolute; |
18 overflow: hidden; | 18 overflow: hidden; |
19 top: 0; | 19 top: 0; |
20 width: 200px; | 20 width: 200px; |
21 } | 21 } |
22 | 22 |
23 #content { | 23 #content { |
24 width: 200px; | 24 width: 200px; |
25 height: 200px; | 25 height: 200px; |
26 -webkit-transform: translateZ(0); | 26 transform: translateZ(0); |
27 background-color: blue; | 27 background-color: blue; |
28 } | 28 } |
29 </style> | 29 </style> |
30 | 30 |
31 <script> | 31 <script> |
32 if (window.testRunner) | 32 if (window.testRunner) |
33 testRunner.waitUntilDone(); | 33 testRunner.waitUntilDone(); |
34 | 34 |
35 var offset = 0; | 35 var offset = 0; |
36 function slideIn() { | 36 function slideIn() { |
(...skipping 10 matching lines...) Expand all Loading... |
47 | 47 |
48 <div id="slidein"> | 48 <div id="slidein"> |
49 <div id="header">This div should stay in front.</div> | 49 <div id="header">This div should stay in front.</div> |
50 | 50 |
51 <div id="section"> | 51 <div id="section"> |
52 <div id="content"> | 52 <div id="content"> |
53 This div should stay behind the header div. | 53 This div should stay behind the header div. |
54 </div> | 54 </div> |
55 </div> | 55 </div> |
56 </div> | 56 </div> |
OLD | NEW |