OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 body { | 3 body { |
4 height: 2000px; | 4 height: 2000px; |
5 width: 2000px; | 5 width: 2000px; |
6 overflow: hidden; | 6 overflow: hidden; |
7 } | 7 } |
8 | 8 |
9 .box { | 9 .box { |
10 width: 300px; | 10 width: 300px; |
(...skipping 14 matching lines...) Expand all Loading... |
25 width: 200px; | 25 width: 200px; |
26 margin-left: 10px; | 26 margin-left: 10px; |
27 background-image: url('../resources/alpha-blocks.png'); | 27 background-image: url('../resources/alpha-blocks.png'); |
28 background-size: 500px 300px; | 28 background-size: 500px 300px; |
29 background-repeat: no-repeat; | 29 background-repeat: no-repeat; |
30 background-attachment: fixed; | 30 background-attachment: fixed; |
31 border: 4px solid gray; | 31 border: 4px solid gray; |
32 } | 32 } |
33 | 33 |
34 .composited { | 34 .composited { |
35 -webkit-transform: translateZ(0); | 35 transform: translateZ(0); |
36 } | 36 } |
37 </style> | 37 </style> |
38 <script> | 38 <script> |
39 function doTest() | 39 function doTest() |
40 { | 40 { |
41 window.scrollTo(35, 45); | 41 window.scrollTo(35, 45); |
42 } | 42 } |
43 window.addEventListener('load', doTest, false); | 43 window.addEventListener('load', doTest, false); |
44 </script> | 44 </script> |
45 <div class="composited box"> | 45 <div class="composited box"> |
46 <div class="child box"></div> | 46 <div class="child box"></div> |
47 </div> | 47 </div> |
48 | 48 |
49 <div class="composited box"> | 49 <div class="composited box"> |
50 <div class="child box"></div> | 50 <div class="child box"></div> |
51 </div> | 51 </div> |
OLD | NEW |