Make scroll-timeline snapshotting tests align with spec and proposal#56000
Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom Nov 12, 2025
Merged
Make scroll-timeline snapshotting tests align with spec and proposal#56000chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-wpt-export-bot merged 1 commit intomasterfrom
Conversation
According to the current spec, scroll-timelines are update after scroll events are dispatched, but before style and layout is updated for the frame update. With the proposed change[1] in the HTML specification, the scroll-timelines are updated after a first style/layout update in the resizeObserver loop. We modify the scroll-timeline-snapshotting tests to allow them to pass for both timings. This reveals an issue with the current Blink implementation not matching the current spec, as we snapshot the timelines before the scroll events are dispatched. WebKit implements the current spec and still pass the tests after modification. [1] whatwg/html#11613 Bug: 384523570 Change-Id: I03b29b1f85527f9e54d597586d0764fc53f7776b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7141779 Reviewed-by: Kevin Ellis <kevers@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1543753}
wpt-pr-bot
approved these changes
Nov 12, 2025
Collaborator
wpt-pr-bot
left a comment
There was a problem hiding this comment.
The review process for this patch is being conducted in the Chromium project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
According to the current spec, scroll-timelines are update after scroll
events are dispatched, but before style and layout is updated for the
frame update. With the proposed change[1] in the HTML specification,
the scroll-timelines are updated after a first style/layout update in
the resizeObserver loop.
We modify the scroll-timeline-snapshotting tests to allow them to pass
for both timings. This reveals an issue with the current Blink
implementation not matching the current spec, as we snapshot the
timelines before the scroll events are dispatched.
WebKit implements the current spec and still pass the tests after
modification.
[1] whatwg/html#11613
Bug: 384523570
Change-Id: I03b29b1f85527f9e54d597586d0764fc53f7776b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7141779
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1543753}