Skip to content

layout,script,paint: Allow viewport's scroll range to be negative - #65732

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_50243
Nov 26, 2026
Merged

servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_50243

Conversation

@servo-wpt-sync

@servo-wpt-sync servo-wpt-sync commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Continues #49891 to fix the scroll range of the viewport. When the viewport has a RTL direction, then the viewport is initially scrolled to the right, and scrolling to the left means getting into negative scroll coordinates.

Before this patch, the initial scroll position was correct, but then, instead of allowing to scroll to the left, we were instead allowing to scroll further into the right, despite already being at the end.

Testing: Adding a test
Fixes: #50242

Reviewed in servo/servo#50243

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

Copy link
Copy Markdown
Collaborator

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 Servo project.

@servo-wpt-sync
servo-wpt-sync merged commit ce1eb91 into web-platform-tests:master Nov 26, 2026
31 checks passed
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_50243 branch November 26, 2026 12:08
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