diff options
Diffstat (limited to 'gfx/layers/apz/test/mochitest/helper_position_sticky_flicker.html')
-rw-r--r-- | gfx/layers/apz/test/mochitest/helper_position_sticky_flicker.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/helper_position_sticky_flicker.html b/gfx/layers/apz/test/mochitest/helper_position_sticky_flicker.html new file mode 100644 index 0000000000..28495a7122 --- /dev/null +++ b/gfx/layers/apz/test/mochitest/helper_position_sticky_flicker.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<script src="/tests/SimpleTest/SimpleTest.js"></script> +<script src="/tests/SimpleTest/paint_listener.js"></script> +<script src="apz_test_utils.js"></script> +<script src="apz_test_native_event_utils.js"></script> +<style> +body { + margin: 0; +} +#sticky { + position: sticky; + top: 0; + height: 50vh; + background-color: green; +} +</style> +<div id="sticky"></div> +<!-- Content to make the page scrollable will be added dynamically --> +<script> + // Silence SimpleTest warning about missing assertions by having it wait + // indefinitely. We don't need to give it an explicit finish because the + // entire window this test runs in will be closed after the main browser test + // finished. + SimpleTest.waitForExplicitFinish(); +</script> |