| 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         height: 2000px; | 
|  | 14         overflow: hidden; /* hide scrollbars */ | 
|  | 15     } | 
|  | 16 | 
|  | 17     .group { | 
|  | 18         display: inline-block; | 
|  | 19         position: relative; | 
|  | 20         width: 250px; | 
|  | 21         height: 500px; | 
|  | 22     } | 
|  | 23 | 
|  | 24     .container { | 
|  | 25         width: 200px; | 
|  | 26         height: 400px; | 
|  | 27         outline: 2px solid black; | 
|  | 28         border: hidden; | 
|  | 29         border-width: 0px; | 
|  | 30         border-spacing: 0px !important; | 
|  | 31         border-collapse:collapse; | 
|  | 32         cellspacing: 0; | 
|  | 33         cellpadding: 0; | 
|  | 34         padding: 0; | 
|  | 35     } | 
|  | 36 | 
|  | 37     .box { | 
|  | 38         width: 200px; | 
|  | 39         height: 198px; | 
|  | 40     } | 
|  | 41 | 
|  | 42     .sticky { | 
|  | 43         position: sticky; | 
|  | 44         top: 100px; | 
|  | 45         background-color: green; | 
|  | 46     } | 
|  | 47 | 
|  | 48     .indicator { | 
|  | 49         position: absolute; | 
|  | 50         top: 0; | 
|  | 51         left: 0; | 
|  | 52         background-color: red; | 
|  | 53     } | 
|  | 54 </style> | 
|  | 55 <script> | 
|  | 56     function doTest() | 
|  | 57     { | 
|  | 58         window.scrollTo(0, 100); | 
|  | 59     } | 
|  | 60     window.addEventListener('load', doTest, false); | 
|  | 61 </script> | 
|  | 62 </head> | 
|  | 63 <body> | 
|  | 64     <div class="group"> | 
|  | 65         <div class="indicator box" style="top: 200px;"></div> | 
|  | 66         <table class="container"> | 
|  | 67             <thead class="sticky"> | 
|  | 68                 <tr> | 
|  | 69                     <td class="box"></td> | 
|  | 70                 </tr> | 
|  | 71             </thead> | 
|  | 72             <tbody> | 
|  | 73                 <tr> | 
|  | 74                     <td></td> | 
|  | 75                 </tr> | 
|  | 76             </tbody> | 
|  | 77         </table> | 
|  | 78     </div> | 
|  | 79 | 
|  | 80     <div class="group" style="top: 100px"> | 
|  | 81         <div class="indicator box" style="top: 100px;"></div> | 
|  | 82         <table class="container" style=""> | 
|  | 83             <thead class="sticky"> | 
|  | 84                 <tr> | 
|  | 85                     <td class="box"></td> | 
|  | 86                 </tr> | 
|  | 87             </thead> | 
|  | 88             <tbody> | 
|  | 89                 <tr> | 
|  | 90                     <td></td> | 
|  | 91                 </tr> | 
|  | 92             </tbody> | 
|  | 93         </table> | 
|  | 94     </div> | 
|  | 95 | 
|  | 96     <div class="group" style="top: 200px"> | 
|  | 97         <div class="indicator box" style="top: 0;"></div> | 
|  | 98         <table class="container" style=""> | 
|  | 99             <thead class="sticky"> | 
|  | 100                 <tr> | 
|  | 101                     <td class="box"></td> | 
|  | 102                 </tr> | 
|  | 103             </thead> | 
|  | 104             <tbody> | 
|  | 105                 <tr> | 
|  | 106                     <td></td> | 
|  | 107                 </tr> | 
|  | 108             </tbody> | 
|  | 109         </table> | 
|  | 110     </div> | 
|  | 111     <div style="position: absolute; top: 620px;"> | 
|  | 112     This test checks that sticky positioned table theads are contained by their 
     table. | 
|  | 113     There should be no red. | 
|  | 114     </div> | 
|  | 115 </body> | 
|  | 116 </html> | 
| OLD | NEW | 
|---|