| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <!DOCTYPE html> | 
|  | 2 <script> | 
|  | 3 if (window.internals) { | 
|  | 4     internals.settings.setCSSStickyPositionEnabled(true); | 
|  | 5 } | 
|  | 6 </script> | 
|  | 7 | 
|  | 8 <html> | 
|  | 9 <head> | 
|  | 10 <style> | 
|  | 11     body { | 
|  | 12         margin: 0; | 
|  | 13         width: 2000px; | 
|  | 14         overflow: hidden; /* hide scrollbars */ | 
|  | 15     } | 
|  | 16 | 
|  | 17     .group { | 
|  | 18         position: relative; | 
|  | 19         width: 500px; | 
|  | 20         height: 160px; | 
|  | 21     } | 
|  | 22 | 
|  | 23     .container { | 
|  | 24         -webkit-writing-mode: vertical-lr; | 
|  | 25         width: 300px; | 
|  | 26         height: 160px; | 
|  | 27         border: 2px solid black; | 
|  | 28         margin: 10px; | 
|  | 29     } | 
|  | 30 | 
|  | 31     .box { | 
|  | 32         width: 200px; | 
|  | 33         height: 180px; | 
|  | 34     } | 
|  | 35 | 
|  | 36     .sticky { | 
|  | 37         position: sticky; | 
|  | 38         background-color: green; | 
|  | 39         width: 100px; | 
|  | 40         height: 100px; | 
|  | 41         left: 20px; | 
|  | 42         right: 20px; | 
|  | 43         margin: 5px; | 
|  | 44     } | 
|  | 45 </style> | 
|  | 46 <script> | 
|  | 47     function doTest() | 
|  | 48     { | 
|  | 49         window.scrollTo(100, 0); | 
|  | 50     } | 
|  | 51     window.addEventListener('load', doTest, false); | 
|  | 52 </script> | 
|  | 53 </head> | 
|  | 54 <body> | 
|  | 55     <div class="group" style="left: -100px"> | 
|  | 56         <div class="container">Before | 
|  | 57             <div class="sticky box"></div>After | 
|  | 58         </div> | 
|  | 59     </div> | 
|  | 60 | 
|  | 61     <div class="group" style="left: 400px"> | 
|  | 62         <div class="container">Before | 
|  | 63             <div class="sticky box"></div>After | 
|  | 64         </div> | 
|  | 65     </div> | 
|  | 66 | 
|  | 67     <div class="group" style="left: 800px"> | 
|  | 68         <div class="container">Before | 
|  | 69             <div class="sticky box"></div>After | 
|  | 70         </div> | 
|  | 71     </div> | 
|  | 72 </body> | 
|  | 73 </html> | 
| OLD | NEW | 
|---|