Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #slidein { | |
| 4 width: 200px; | |
| 5 height: 200px; | |
| 6 -webkit-transform: translate3d(200px, 0, 0); | |
| 7 } | |
| 8 | |
| 9 #header { | |
| 10 position: relative; | |
| 11 height: 50px; | |
| 12 z-index: 1; | |
| 13 background-color: green; | |
| 14 } | |
| 15 | |
| 16 #section { | |
| 17 position: absolute; | |
| 18 overflow: hidden; | |
| 19 top: 0; | |
| 20 width: 200px; | |
| 21 } | |
| 22 | |
| 23 #content { | |
| 24 width: 200px; | |
| 25 height: 200px; | |
| 26 -webkit-transform: translateZ(0); | |
| 27 background-color: blue; | |
| 28 } | |
| 29 </style> | |
| 30 | |
| 31 <div id="slidein"> | |
| 32 <div id="header">This div should stay in front.</div> | |
| 33 | |
| 34 <div id="section"> | |
| 35 <div id="content"> | |
| 36 This div should stay behind the header div. | |
| 37 </div> | |
| 38 </div> | |
| 39 </div> | |
| OLD | NEW |