LibWeb: Implement the unreachable scrollable overflow

Whenever we end up with a scrollable overflow rect that goes beyond
either of its axes (i.e. the rect has a negative X or Y position
relative to its parent's absolute padding box position), we need to clip
that rect to prevent going into the "unreachable scrollable overflow".

This fixes the horizontal scrolling on https://ladybird.org (gets more
pronounced if you make the window very narrow).
This commit is contained in:
Jelle Raaijmakers 2025-07-10 11:43:46 +02:00
commit 2998049fe9
Notes: github-actions[bot] 2025-07-11 06:24:49 +00:00
33 changed files with 140 additions and 98 deletions

View file

@ -0,0 +1 @@
html scrollWidth: 800

View file

@ -2,16 +2,16 @@ Harness status: OK
Found 11 tests
4 Pass
7 Fail
Fail .flexbox 1
Fail .flexbox 2
Fail .flexbox 3
7 Pass
4 Fail
Pass .flexbox 1
Pass .flexbox 2
Pass .flexbox 3
Pass .flexbox 4
Pass .flexbox 5
Fail .flexbox 5
Fail .flexbox 6
Fail .flexbox 7
Fail .flexbox 8
Pass .flexbox 8
Pass .flexbox 9
Pass .flexbox 10
Fail .flexbox 11