position-sticky-escape-scroller-003.html (904B)
1 <!DOCTYPE html> 2 <title>CSS Positioned Layout Test: a sticky element contained by absolute under a scroller not containing absolute</title> 3 <link rel="help" href="https://www.w3.org/TR/css-position-3/#sticky-pos"> 4 <link rel="help" href="https://crbug.com/881555"> 5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3185"> 6 <link rel="match" href="position-sticky-escape-scroller-001-ref.html"> 7 <div id="scroller" style="width: 200px; height: 100px; overflow: hidden"> 8 <div style="height: 100px; background: red"></div> 9 <div style="position: absolute; height: 400px"> 10 <div style="position: sticky; top: 0; width: 200px; height: 100px; background: green"></div> 11 </div> 12 <div style="height: 100px; background: red"></div> 13 <div style="height: 100px; background: green"></div> 14 <div style="height: 1000px; background: red"></div> 15 </div> 16 <script> 17 scroller.scrollTop = 200; 18 </script>