mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 14:02:47 +00:00
f6fd7810ec
- Verify that instant scroll-behavior is synchronous. - Verify that smooth scroll-behavior is asynchronous. - Verify that smooth scroll-behavior is triggered by CSSOM-View DOM methods. - Verify that instant scroll-behavior interrupts smooth scroll-behavior animation. - Verify that smooth scroll-behavior is not framerate dependant. - Verify that smooth scroll-behavior physics simulations used by animations converge and allow the animation to reach completion. - CSSOM-View scroll-behavior smooth scroll animations must produce the same results indendently of frame-rate: - Reference samples of scroll position for each frame are captured from a smooth scroll at 120fps for variations in X-Distance, Y-Distance. - Test samples are captured from an animation with the same parameters at varying framerates. - Variance in position at each sampled interval is compared to the 120fps reference. To pass the test, the position of each test sample must match the reference position with a tolerance of one test sample frame's range of motion. This range of motion is calculated by the position delta of the reference samples one test frame duration before and after. - The duration of the reference sample animation and the test sample animation must match within 1 frame to pass the test. - The simulation driving the animation must converge and stop on the destination position for the test to pass. --HG-- extra : rebase_source : 194f6c9364e316ea21cf1e74ab6f7542ee94edb8