| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <html> | |
| 4 <head> | |
| 5 <style> | |
| 6 body { | |
| 7 margin: 0; | |
| 8 height: 2000px; | |
| 9 } | |
| 10 | |
| 11 ::-webkit-scrollbar { | |
| 12 width: 0px; | |
| 13 height: 0px; | |
| 14 } | |
| 15 | |
| 16 .group { | |
| 17 display: inline-block; | |
| 18 position: relative; | |
| 19 width: 160px; | |
| 20 height: 300px; | |
| 21 } | |
| 22 | |
| 23 .container { | |
| 24 width: 150px; | |
| 25 height: 300px; | |
| 26 outline: 2px solid black; | |
| 27 } | |
| 28 | |
| 29 .box { | |
| 30 width: 150px; | |
| 31 height: 150px; | |
| 32 } | |
| 33 | |
| 34 .sticky { | |
| 35 position: sticky; | |
| 36 top: 75px; | |
| 37 background-color: green; | |
| 38 } | |
| 39 | |
| 40 .indicator { | |
| 41 position: absolute; | |
| 42 top: 0; | |
| 43 left: 0; | |
| 44 background-color: red; | |
| 45 } | |
| 46 </style> | |
| 47 <script> | |
| 48 function doTest() | |
| 49 { | |
| 50 if (window.eventSender) | |
| 51 eventSender.setPageScaleFactor(1.5); | |
| 52 } | |
| 53 window.addEventListener('load', doTest, false); | |
| 54 </script> | |
| 55 </head> | |
| 56 <body> | |
| 57 <div class="group" style="top: -100px"> | |
| 58 <div class="indicator box" style="top: 150px;"></div> | |
| 59 <div class="container"> | |
| 60 <div class="sticky box"></div> | |
| 61 </div> | |
| 62 </div> | |
| 63 | |
| 64 <div class="group" style="top: 0"> | |
| 65 <div class="indicator box" style="top: 75px;"></div> | |
| 66 <div class="container"> | |
| 67 <div class="sticky box"></div> | |
| 68 </div> | |
| 69 </div> | |
| 70 | |
| 71 <div class="group" style="top: 100px"> | |
| 72 <div class="indicator box" style="top: 0;"></div> | |
| 73 <div class="container"> | |
| 74 <div class="sticky box"></div> | |
| 75 </div> | |
| 76 </div> | |
| 77 </body> | |
| 78 </html> | |
| OLD | NEW |