| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 height: 2000px; | 8 height: 2000px; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 position: absolute; | 41 position: absolute; |
| 42 top: 0; | 42 top: 0; |
| 43 left: 0; | 43 left: 0; |
| 44 background-color: red; | 44 background-color: red; |
| 45 } | 45 } |
| 46 </style> | 46 </style> |
| 47 <script> | 47 <script> |
| 48 function doTest() | 48 function doTest() |
| 49 { | 49 { |
| 50 if (window.eventSender) | 50 if (window.eventSender) |
| 51 eventSender.scalePageBy(1.5); | 51 eventSender.setPageScaleFactor(1.5); |
| 52 | 52 |
| 53 window.scrollTo(0, 100); | 53 window.scrollTo(0, 100); |
| 54 } | 54 } |
| 55 window.addEventListener('load', doTest, false); | 55 window.addEventListener('load', doTest, false); |
| 56 </script> | 56 </script> |
| 57 </head> | 57 </head> |
| 58 <body> | 58 <body> |
| 59 <div class="group"> | 59 <div class="group"> |
| 60 <div class="indicator box" style="top: 150px;"></div> | 60 <div class="indicator box" style="top: 150px;"></div> |
| 61 <div class="container"> | 61 <div class="container"> |
| 62 <div class="sticky box"></div> | 62 <div class="sticky box"></div> |
| 63 </div> | 63 </div> |
| 64 </div> | 64 </div> |
| 65 | 65 |
| 66 <div class="group" style="top: 100px"> | 66 <div class="group" style="top: 100px"> |
| 67 <div class="indicator box" style="top: 75px;"></div> | 67 <div class="indicator box" style="top: 75px;"></div> |
| 68 <div class="container"> | 68 <div class="container"> |
| 69 <div class="sticky box"></div> | 69 <div class="sticky box"></div> |
| 70 </div> | 70 </div> |
| 71 </div> | 71 </div> |
| 72 | 72 |
| 73 <div class="group" style="top: 200px"> | 73 <div class="group" style="top: 200px"> |
| 74 <div class="indicator box" style="top: 0;"></div> | 74 <div class="indicator box" style="top: 0;"></div> |
| 75 <div class="container"> | 75 <div class="container"> |
| 76 <div class="sticky box"></div> | 76 <div class="sticky box"></div> |
| 77 </div> | 77 </div> |
| 78 </div> | 78 </div> |
| 79 </body> | 79 </body> |
| 80 </html> | 80 </html> |
| OLD | NEW |