Skip to content

Make scroll-timeline snapshotting tests align with spec and proposal#56000

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-0069f4434e
Nov 12, 2025
Merged

Make scroll-timeline snapshotting tests align with spec and proposal#56000
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-0069f4434e

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

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}

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}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit d702e50 into master Nov 12, 2025
19 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-0069f4434e branch November 12, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants