mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +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).
17 lines
1,003 B
Text
17 lines
1,003 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (10,10) content-size 780x56 [BFC] children: not-inline
|
|
BlockContainer <body> at (28,28) content-size 744x20 children: not-inline
|
|
Box <div.pink> at (38,38) content-size 724x0 flex-container(row) [FFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.orange> at (48,-12) content-size 100x100 positioned [BFC] children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x76]
|
|
PaintableWithLines (BlockContainer<BODY>) [18,18 764x40]
|
|
PaintableBox (Box<DIV>.pink) [28,28 744x20]
|
|
PaintableWithLines (BlockContainer<DIV>.orange) [38,-22 120x120]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [10,10 780x56] [children: 0] (z-index: auto)
|