You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop assuming that the scroll range for the viewport starts at 0 #50242
A-layout/2020https://github.com/servo/servo/wiki/Layout-2020C-has-manual-testcaseA minimal testcase exists that can be run manually.
Scroll ranges can extend into negative values, see #49891
<!DOCTYPE html><style>:root{direction: rtl;}body{width:200vw;border: solid;}</style>
text
<script>document.documentElement.scrollLeft=-document.documentElement.scrollWidth;</script>
Actual: It's scrolled to the right (you see "text"). If you press the left arrow you can't scroll left, but you can sroll further right with the right arrow.
Expected: It's scrolled to the left.
Firefox is right.
Blink and WebKit refuse JS to scroll into a negative coordinate, but allow the user to scroll left, which is then reported as a negative coordinate.
A-layout/2020https://github.com/servo/servo/wiki/Layout-2020C-has-manual-testcaseA minimal testcase exists that can be run manually.
Activity
layout,script,paint: Allow viewport's scroll range to be negative (se…
layout,script,paint: Allow viewport's scroll range to be negative (se…