mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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).
43 lines
2.5 KiB
Plaintext
43 lines
2.5 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x106 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x90 children: not-inline
|
|
TableWrapper <(anonymous)> at (8,8) content-size 60.46875x90 [BFC] children: not-inline
|
|
Box <table> at (8,36) content-size 60.46875x24 table-box [TFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text>
|
|
BlockContainer <caption> at (8,8) content-size 60.46875x18 [BFC] children: inline
|
|
frag 0 from TextNode start: 1, length: 7, rect: [8,8 60.46875x18] baseline: 13.796875
|
|
"Caption"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text>
|
|
Box <tbody> at (10,38) content-size 56.46875x20 table-row-group children: not-inline
|
|
Box <tr> at (10,38) content-size 56.46875x20 table-row children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text>
|
|
BlockContainer <td> at (11,39) content-size 54.46875x18 table-cell [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (11,39) content-size 54.46875x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 4, rect: [11,39 27.5x18] baseline: 13.796875
|
|
"Cell"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x106]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x90]
|
|
PaintableWithLines (TableWrapper(anonymous)) [8,8 60.46875x90]
|
|
PaintableBox (Box<TABLE>) [8,36 60.46875x24]
|
|
PaintableWithLines (BlockContainer<CAPTION>) [8,-2 60.46875x38]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableBox (Box<TBODY>) [10,38 56.46875x20]
|
|
PaintableBox (Box<TR>) [10,38 56.46875x20]
|
|
PaintableWithLines (BlockContainer<TD>) [10,38 56.46875x20]
|
|
PaintableWithLines (BlockContainer(anonymous)) [11,39 54.46875x18]
|
|
TextPaintable (TextNode<#text>)
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x106] [children: 0] (z-index: auto)
|