helper_position_sticky_flicker.html (791B)
1 <!DOCTYPE html> 2 <script src="/tests/SimpleTest/SimpleTest.js"></script> 3 <script src="/tests/SimpleTest/paint_listener.js"></script> 4 <script src="apz_test_utils.js"></script> 5 <script src="apz_test_native_event_utils.js"></script> 6 <style> 7 body { 8 margin: 0; 9 background-color: rgb(0, 0, 0); 10 } 11 #sticky { 12 position: sticky; 13 top: 0; 14 height: 50vh; 15 background-color: rgb(0, 1, 0); 16 } 17 </style> 18 <div id="sticky"></div> 19 <!-- Content to make the page scrollable will be added dynamically --> 20 <script> 21 // Silence SimpleTest warning about missing assertions by having it wait 22 // indefinitely. We don't need to give it an explicit finish because the 23 // entire window this test runs in will be closed after the main browser test 24 // finished. 25 SimpleTest.waitForExplicitFinish(); 26 </script>