Skip to content

Commit 483a343

Browse files
lilleschromium-wpt-export-bot
authored andcommitted
Make scroll-animations/css/ tests pass for run-snapshot-post-layout
Preparing for proposed change: whatwg/html#11613 Bug: 384523570 Change-Id: I03bb632c6333c11dfe1081825dbea863a718c089 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6975917 Reviewed-by: Kevin Ellis <[email protected]> Commit-Queue: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1523396}
1 parent 965e56d commit 483a343

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scroll-animations/css/scroll-timeline-multi-pass.tentative.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@
105105
assert_equals(events2[0][0].contentBoxSize[0].blockSize, 1);
106106

107107
assert_equals(getComputedStyle(element1).width, '100px');
108+
109+
await waitForNextFrame();
108110
assert_equals(getComputedStyle(element2).height, '100px');
109111
}, 'Multiple style/layout passes occur when necessary');
110112
</script>

scroll-animations/css/scroll-timeline-paused-animations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
await waitForNextFrame();
7373
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
7474
scroller.scrollTop = maxScroll;
75-
await waitForNextFrame();
75+
await waitForCSSScrollTimelineStyle();
7676
assert_equals(getComputedStyle(div).width, '200px');
7777

7878
div.style.animationPlayState = 'paused';
@@ -86,7 +86,7 @@
8686
'Current time preserved when paused.');
8787
assert_percents_equal(anim.timeline.currentTime, 100);
8888
document.scrollingElement.scrollTop = 0;
89-
await waitForNextFrame();
89+
await waitForCSSScrollTimelineStyle();
9090
assert_percents_equal(anim.timeline.currentTime, 0);
9191
assert_equals(getComputedStyle(div).width, '200px');
9292
}, 'Test that the scroll animation is paused by updating animation-play-state');

0 commit comments

Comments
 (0)