Repository navigation
Conversation
This change makes various fixes to ensure that scroll ranges are sensitive to the writing mode of their scrolling boxes. Scroll ranges should be clamped to the edges of the content box, even if they extent into negative values beyond the edges of the scrolling box (for RTL writing modes). In addition, start and end scroll targets are now sensitive to the writing mode (flipping in the case of RTL). Finally, scroll positions queries no longer call `abs()` on their values, reflecting the fact that scroll positions can be negative. Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Oriol Brufau <[email protected]>
Loirooriol
approved these changes
Nov 16, 2026
|
Test results for linux-wpt from merge queue job (#44057723860): Flaky unexpected result (25)
Stable unexpected results that are known to be intermittent (10)
|
mrobinson
deleted the
script-paint-make-scroll-range-writing-mode-sensitive
branch
November 17, 2026 11:06
This was referenced Nov 25, 2026
SimonSapin
pushed a commit
to SimonSapin/servo
that referenced
this pull request
Nov 26, 2026
…rvo#50243) Continues servo#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: servo#50242 Signed-off-by: Oriol Brufau <[email protected]>
devin-ai-integration Bot
pushed a commit
to baigojahanzaib/servo
that referenced
this pull request
Nov 28, 2026
…rvo#50243) Continues servo#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: servo#50242 Signed-off-by: Oriol Brufau <[email protected]>
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.
This change makes various fixes to ensure that scroll ranges are
sensitive to the writing mode of their scrolling boxes. Scroll ranges
should be clamped to the edges of the content box, even if they extent
into negative values beyond the edges of the scrolling box (for RTL writing
modes). In addition, start and end scroll targets are now sensitive to
the writing mode (flipping in the case of RTL). Finally, scroll
positions queries no longer call
abs()on their values, reflecting thefact that scroll positions can be negative.
Testing: Change causes various WPT tests to start passing and one to start
failing due to us not implementing the resolution from w3c/csswg-drafts#12289
yet.