mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 13:18:19 +00:00
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:
parent
05ddf5c718
commit
2998049fe9
Notes:
github-actions[bot]
2025-07-11 06:24:49 +00:00
Author: https://github.com/gmta
Commit: 2998049fe9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5384
33 changed files with 140 additions and 98 deletions
|
@ -16,11 +16,11 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x52]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x36] overflow: [0,8 792x36]
|
||||
PaintableWithLines (BlockContainer<DIV>) [8,8 784x36] overflow: [0,8 792x36]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x36]
|
||||
PaintableWithLines (BlockContainer<DIV>) [8,8 784x36]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x18]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (ListItemBox(anonymous)) [24,26 768x18] overflow: [0,26 792x18]
|
||||
PaintableWithLines (ListItemBox(anonymous)) [24,26 768x18]
|
||||
MarkerPaintable (ListItemMarkerBox(anonymous)) [0,26.5 12x17]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,44 784x0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue