commit 86587b8543d2f8f224709463577452432a9c9dcd
parent d64ba7f31268ff0c13fbbd58c8e3d4285391294b
Author: Rune Lillesveen <futhark@chromium.org>
Date: Wed, 19 Nov 2025 04:56:46 +0000
Bug 2000894 [wpt PR 56092] - Make effect-updateTiming pass with RunSnapshotPostLayoutStateSteps, a=testonly
Automatic update from web-platform-tests
Make effect-updateTiming pass with RunSnapshotPostLayoutStateSteps
Wait for a full frame to allow style and layout update to run when we
don't snapshot scroll offsets before the rAF callback.
Bug: 384523570
Change-Id: I7b56de569268c55766001dc706f498e44e16000a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7156738
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1546573}
--
wpt-commits: a78703e70475d9579beb24d168695835c1da4b10
wpt-pr: 56092
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html
@@ -466,6 +466,7 @@ promise_test(async t => {
await anim.ready;
scroller.scrollTop = maxScroll * 0.07
await waitForNextFrame();
+ await waitForNextFrame();
assert_time_equals_literal(anim.effect.getComputedTiming().progress, 0.07,
'progress before updating direction');
@@ -520,6 +521,7 @@ promise_test(async t => {
await anim.ready;
scroller.scrollTop = maxScroll * 0.17 // 34% through first iteration
await waitForNextFrame();
+ await waitForNextFrame();
assert_time_equals_literal(anim.effect.getComputedTiming().progress, 0.34,
'progress before updating direction');
@@ -541,6 +543,7 @@ promise_test(async t => {
await anim.ready;
scroller.scrollTop = maxScroll * 0.17
await waitForNextFrame();
+ await waitForNextFrame();
// anim.currentTime = 17000; // 34% through first iteration
assert_time_equals_literal(anim.effect.getComputedTiming().progress, 0.34,
'progress before updating direction');
@@ -616,6 +619,7 @@ promise_test(async t => {
scroller.scrollTop = maxScroll * 0.875
await waitForNextFrame();
+ await waitForNextFrame();
assert_equals(anim.effect.getComputedTiming().progress, 0.5,
'change currentTime to active phase');