| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <style> | 2 <style> |
| 3 #container { | 3 #container { |
| 4 -webkit-box-reflect: below; | 4 -webkit-box-reflect: below; |
| 5 } | 5 } |
| 6 | 6 |
| 7 #clipper { | 7 #clipper { |
| 8 overflow: hidden; | 8 overflow: hidden; |
| 9 width: 95px; | 9 width: 95px; |
| 10 height: 100px; | 10 height: 100px; |
| 11 margin: 10px; | 11 margin: 10px; |
| 12 } | 12 } |
| 13 | 13 |
| 14 #scroller { | 14 #scroller { |
| 15 width: 100px; | 15 width: 100px; |
| 16 height: 100px; | 16 height: 100px; |
| 17 border: 1px solid black; | 17 border: 1px solid black; |
| 18 overflow: auto; | 18 overflow: auto; |
| 19 } | 19 } |
| 20 | 20 |
| 21 | 21 |
| 22 #fixed { | 22 #fixed { |
| 23 width: 10px; | 23 width: 10px; |
| 24 height: 10px; | 24 height: 10px; |
| 25 position: fixed; | 25 position: fixed; |
| 26 left: 200px; | 26 left: 200px; |
| 27 background: blue; | 27 background: blue; |
| 28 -webkit-transform: translateZ(0); | 28 transform: translateZ(0); |
| 29 } | 29 } |
| 30 | 30 |
| 31 #scrolled { | 31 #scrolled { |
| 32 width: 100px; | 32 width: 100px; |
| 33 height: 300px; | 33 height: 300px; |
| 34 background: green; | 34 background: green; |
| 35 } | 35 } |
| 36 </style> | 36 </style> |
| 37 <script> | 37 <script> |
| 38 if (window.internals) { | 38 if (window.internals) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 49 }; | 49 }; |
| 50 </script> | 50 </script> |
| 51 <div id="container"> | 51 <div id="container"> |
| 52 <div id="clipper"> | 52 <div id="clipper"> |
| 53 <div id="scroller"> | 53 <div id="scroller"> |
| 54 <div id="fixed"></div> | 54 <div id="fixed"></div> |
| 55 <div id="scrolled"></div> | 55 <div id="scrolled"></div> |
| 56 </div> | 56 </div> |
| 57 </div> | 57 </div> |
| 58 </div> | 58 </div> |
| OLD | NEW |