mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +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
983 B
Text
16 lines
983 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x100 children: not-inline
|
|
BlockContainer <div#container-of-flex> at (8,8) content-size 100x100 children: not-inline
|
|
Box <div#flex> at (-92,8) content-size 200x100 flex-container(row) [FFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]
|
|
PaintableWithLines (BlockContainer<DIV>#container-of-flex) [8,8 100x100]
|
|
PaintableBox (Box<DIV>#flex) [-92,8 200x100]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x116] [children: 0] (z-index: auto)
|