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).
77 lines
4.4 KiB
Plaintext
77 lines
4.4 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x120 [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <body> at (8,16) content-size 784x88 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,16) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <ul.A> at (48,16) content-size 744x36 children: not-inline
|
|
BlockContainer <(anonymous)> at (48,16) content-size 744x0 children: inline
|
|
TextNode <#text>
|
|
ListItemBox <li> at (48,16) content-size 744x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 5, rect: [48,16 47.859375x18] baseline: 13.796875
|
|
"Three"
|
|
ListItemMarkerBox <(anonymous)> at (24,16.5) content-size 12x17 children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (48,34) content-size 744x0 children: inline
|
|
TextNode <#text>
|
|
ListItemBox <li> at (48,34) content-size 744x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 4, rect: [48,34 41.5x18] baseline: 13.796875
|
|
"Four"
|
|
ListItemMarkerBox <(anonymous)> at (24,34.5) content-size 12x17 children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (48,52) content-size 744x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,68) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <ul.B> at (48,68) content-size 744x36 children: not-inline
|
|
BlockContainer <(anonymous)> at (48,68) content-size 744x0 children: inline
|
|
TextNode <#text>
|
|
ListItemBox <li> at (48,68) content-size 744x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [48,68 29.8125x18] baseline: 13.796875
|
|
"One"
|
|
ListItemMarkerBox <(anonymous)> at (40,68) content-size 4x9 children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (48,86) content-size 744x0 children: inline
|
|
TextNode <#text>
|
|
ListItemBox <li> at (48,86) content-size 744x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [48,86 33.875x18] baseline: 13.796875
|
|
"Two"
|
|
ListItemMarkerBox <(anonymous)> at (40,86) content-size 4x9 children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (48,104) content-size 744x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,120) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x120]
|
|
PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,16 784x88]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,16 784x0]
|
|
PaintableWithLines (BlockContainer<UL>.A) [8,16 784x36]
|
|
PaintableWithLines (BlockContainer(anonymous)) [48,16 744x0]
|
|
PaintableWithLines (ListItemBox<LI>) [48,16 744x18]
|
|
MarkerPaintable (ListItemMarkerBox(anonymous)) [24,16.5 12x17]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [48,34 744x0]
|
|
PaintableWithLines (ListItemBox<LI>) [48,34 744x18]
|
|
MarkerPaintable (ListItemMarkerBox(anonymous)) [24,34.5 12x17]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [48,52 744x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,68 784x0]
|
|
PaintableWithLines (BlockContainer<UL>.B) [8,68 784x36]
|
|
PaintableWithLines (BlockContainer(anonymous)) [48,68 744x0]
|
|
PaintableWithLines (ListItemBox<LI>) [48,68 744x18]
|
|
MarkerPaintable (ListItemMarkerBox(anonymous)) [40,68 4x9]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [48,86 744x0]
|
|
PaintableWithLines (ListItemBox<LI>) [48,86 744x18]
|
|
MarkerPaintable (ListItemMarkerBox(anonymous)) [40,86 4x9]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [48,104 744x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,120 784x0]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x120] [children: 0] (z-index: auto)
|