mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 00:49:46 +00:00
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).
16 lines
920 B
Text
16 lines
920 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x48 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x0 children: inline
|
|
BlockContainer <div.r> at (8,-2) content-size 50x50 floating [BFC] children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <div.g> at (58,-2) content-size 50x50 floating [BFC] children: not-inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x48]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0] overflow: [8,8 100x40]
|
|
PaintableWithLines (BlockContainer<DIV>.r) [8,-2 50x50]
|
|
PaintableWithLines (BlockContainer<DIV>.g) [58,-2 50x50]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x48] [children: 0] (z-index: auto)
|