commit 1865d387449afff9931f3618741690147c9832ad
parent c9eb9bfd60d92a02b020ae5a61ed1c5561389e79
Author: Rune Lillesveen <futhark@chromium.org>
Date: Thu, 9 Oct 2025 20:38:01 +0000
Bug 1992487 [wpt PR 55132] - Make scroll-animations/css/ tests pass for run-snapshot-post-layout, a=testonly
Automatic update from web-platform-tests
Make scroll-animations/css/ tests pass for run-snapshot-post-layout
Preparing for proposed change:
https://github.com/whatwg/html/pull/11613
Bug: 384523570
Change-Id: I03bb632c6333c11dfe1081825dbea863a718c089
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6975917
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1523396}
--
wpt-commits: 483a343e2c5be71da1e3d9ffefb9e5a7bf3bd90e
wpt-pr: 55132
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-multi-pass.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-multi-pass.tentative.html
@@ -105,6 +105,8 @@
assert_equals(events2[0][0].contentBoxSize[0].blockSize, 1);
assert_equals(getComputedStyle(element1).width, '100px');
+
+ await waitForNextFrame();
assert_equals(getComputedStyle(element2).height, '100px');
}, 'Multiple style/layout passes occur when necessary');
</script>
diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-paused-animations.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-paused-animations.html
@@ -72,7 +72,7 @@ promise_test(async t => {
await waitForNextFrame();
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
scroller.scrollTop = maxScroll;
- await waitForNextFrame();
+ await waitForCSSScrollTimelineStyle();
assert_equals(getComputedStyle(div).width, '200px');
div.style.animationPlayState = 'paused';
@@ -86,7 +86,7 @@ promise_test(async t => {
'Current time preserved when paused.');
assert_percents_equal(anim.timeline.currentTime, 100);
document.scrollingElement.scrollTop = 0;
- await waitForNextFrame();
+ await waitForCSSScrollTimelineStyle();
assert_percents_equal(anim.timeline.currentTime, 0);
assert_equals(getComputedStyle(div).width, '200px');
}, 'Test that the scroll animation is paused by updating animation-play-state');