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).
31 lines
2.2 KiB
Text
31 lines
2.2 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x39 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x23 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [8,9 200x16] baseline: 16
|
|
frag 1 from BlockContainer start: 0, length: 0, rect: [208,9 200x16] baseline: 16
|
|
BlockContainer <input> at (8,9) content-size 200x16 inline-block [BFC] children: not-inline
|
|
BlockContainer <div> at (9,16) content-size 200x4 positioned children: not-inline
|
|
BlockContainer <div> at (9,16) content-size 100x4 positioned [BFC] children: not-inline
|
|
BlockContainer <div> at (109,10) content-size 16x16 children: not-inline
|
|
BlockContainer <input> at (208,9) content-size 200x16 inline-block [BFC] children: not-inline
|
|
BlockContainer <div> at (209,16) content-size 200x4 positioned children: not-inline
|
|
BlockContainer <div> at (209,16) content-size 20x4 positioned [BFC] children: not-inline
|
|
BlockContainer <div> at (229,10) content-size 16x16 children: not-inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x39]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x23]
|
|
PaintableWithLines (BlockContainer<INPUT>) [8,9 200x16] overflow: [8,9 202x17]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,15 202x6] overflow: [9,16 200x10]
|
|
PaintableWithLines (BlockContainer<DIV>) [9,16 100x4]
|
|
PaintableWithLines (BlockContainer<DIV>) [109,10 16x16]
|
|
PaintableWithLines (BlockContainer<INPUT>) [208,9 200x16] overflow: [208,9 202x17]
|
|
PaintableWithLines (BlockContainer<DIV>) [208,15 202x6] overflow: [209,16 200x10]
|
|
PaintableWithLines (BlockContainer<DIV>) [209,16 20x4]
|
|
PaintableWithLines (BlockContainer<DIV>) [229,10 16x16]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x39] [children: 2] (z-index: auto)
|
|
SC for BlockContainer<DIV> [109,10 16x16] [children: 0] (z-index: 1), transform: [1 0 0 1 -8 0]
|
|
SC for BlockContainer<DIV> [229,10 16x16] [children: 0] (z-index: 1), transform: [1 0 0 1 -8 0]
|