Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <style> | |
|
esprehn
2014/04/01 22:00:13
same
| |
| 2 body { | |
| 3 height: 2000px; | |
| 4 width: 2000px; | |
| 5 overflow: hidden; | |
| 6 } | |
| 7 | |
| 8 .box { | |
| 9 height: 300px; | |
| 10 width: 300px; | |
| 11 margin: 20px; | |
| 12 margin-left: 10px; | |
| 13 background-image: url('../resources/alpha-blocks.png'); | |
| 14 | |
| 15 background-size: 500px 300px; | |
| 16 background-repeat: no-repeat; | |
| 17 background-attachment: fixed; | |
| 18 box-shadow: 10px 10px 0px gray; /* inflates composited bounds */ | |
| 19 border: 4px solid gray; | |
| 20 float: left; | |
| 21 } | |
| 22 | |
| 23 .composited { | |
| 24 -webkit-transform: translateZ(0); | |
| 25 } | |
| 26 </style> | |
| 27 <script> | |
| 28 function doTest() | |
| 29 { | |
| 30 window.scrollTo(35, 45); | |
| 31 } | |
| 32 window.addEventListener('load', doTest, false); | |
| 33 </script> | |
| 34 <div class="composited box"></div> | |
| 35 <div class="composited box"></div> | |
| OLD | NEW |