| OLD | NEW | 
| (Empty) |  | 
 |   1 <!DOCTYPE html> | 
 |   2  | 
 |   3 <html> | 
 |   4 <head> | 
 |   5 <style> | 
 |   6     #overflow { | 
 |   7         width: 600px; | 
 |   8         height: 450px; | 
 |   9         overflow: hidden; /* Still scrollable with JS */ | 
 |  10         border: 1px solid black; | 
 |  11     } | 
 |  12  | 
 |  13     .group { | 
 |  14         position: relative; | 
 |  15         width: 500px; | 
 |  16         height: 150px; | 
 |  17     } | 
 |  18  | 
 |  19     .container { | 
 |  20         width: 400px; | 
 |  21         height: 130px; | 
 |  22         outline: 2px solid black; | 
 |  23     } | 
 |  24  | 
 |  25     .box { | 
 |  26         width: 200px; | 
 |  27         height: 130px; | 
 |  28     } | 
 |  29  | 
 |  30     .sticky { | 
 |  31         position: absolute; | 
 |  32         background-color: green; | 
 |  33     } | 
 |  34  | 
 |  35     .indicator { | 
 |  36         position: absolute; | 
 |  37         top: 0; | 
 |  38         left: 0; | 
 |  39         background-color: red; | 
 |  40     } | 
 |  41 </style> | 
 |  42 <script> | 
 |  43     function doTest() | 
 |  44     { | 
 |  45         document.getElementById('overflow').scrollLeft = 100; | 
 |  46     } | 
 |  47     window.addEventListener('load', doTest, false); | 
 |  48 </script> | 
 |  49 </head> | 
 |  50 <body> | 
 |  51 This test checks that right offset is ignored with overconstrained sticky positi
    oning and ltr text direction. | 
 |  52 There should be no red. | 
 |  53     <div id="overflow"> | 
 |  54         <div class="group"> | 
 |  55             <div class="indicator box" style="left: 200px;"></div> | 
 |  56             <div class="container"> | 
 |  57                 <div class="sticky box" style="left: 200px;"></div> | 
 |  58             </div> | 
 |  59         </div> | 
 |  60  | 
 |  61         <div class="group" style="left: 100px"> | 
 |  62             <div class="indicator box" style="left: 100px;"></div> | 
 |  63             <div class="container"> | 
 |  64                 <div class="sticky box" style="left: 100px;"></div> | 
 |  65             </div> | 
 |  66         </div> | 
 |  67  | 
 |  68         <div class="group" style="left: 200px"> | 
 |  69             <div class="indicator box" style="left: 0;"></div> | 
 |  70             <div class="container"> | 
 |  71                 <div class="sticky box"></div> | 
 |  72             </div> | 
 |  73         </div> | 
 |  74     </div> | 
 |  75 </body> | 
 |  76 </html> | 
| OLD | NEW |