position-sticky-async-zoom-2.html (783B)
1 <!DOCTYPE html> 2 <html class="reftest-wait" 3 reftest-async-scroll 4 reftest-displayport-x="0" reftest-displayport-y="0" 5 reftest-displayport-w="800" reftest-displayport-h="1000" 6 reftest-async-scroll-x="0" reftest-async-scroll-y="-50" 7 reftest-async-zoom="2.0"> 8 <head> 9 <style> 10 html { 11 scrollbar-width: none; 12 } 13 body { 14 height: 3000px; 15 margin: 0; 16 } 17 div { 18 position: sticky; 19 top: 0; 20 width: 100px; 21 height: 100px; 22 background: green; 23 } 24 </style> 25 </head> 26 <body onload="scrollTo(0, 1000); document.documentElement.classList.remove('reftest-wait');"> 27 <!-- This test is identical to the position-fixed-async-zoom-2 test, but for 28 position:sticky elements. --> 29 <div></div> 30 </body> 31 </html>