position-sticky-change-top-ref.html (404B)
1 <!DOCTYPE html> 2 <title>Reference for sticky elements should invalidate when top/left/bottom/right changes</title> 3 4 <style> 5 .box { 6 /* Triggers promotion without creating stacking context. */ 7 backface-visibility: hidden; 8 background: green; 9 position: sticky; 10 top: 200px; 11 width: 100px; 12 height: 100px; 13 } 14 15 .spacer { 16 height: 200vh; 17 } 18 </style> 19 20 <div class="box"></div> 21 <div class="spacer"></div>