mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 23:50:06 +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).
26 lines
1.5 KiB
Text
26 lines
1.5 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (1,1) content-size 798x480 [BFC] children: not-inline
|
|
Box <body.hero> at (10,10) content-size 500x462 flex-container(column) [FFC] children: not-inline
|
|
BlockContainer <div.upper> at (10,11) content-size 500x460 flex-item [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 11, rect: [10,11 453.984375x92] baseline: 69.984375
|
|
"This entire"
|
|
frag 1 from TextNode start: 12, length: 11, rect: [10,103 455x92] baseline: 69.984375
|
|
"text should"
|
|
frag 2 from TextNode start: 24, length: 5, rect: [10,195 230.78125x92] baseline: 69.984375
|
|
"be on"
|
|
frag 3 from TextNode start: 30, length: 6, rect: [10,287 272.109375x92] baseline: 69.984375
|
|
"orange"
|
|
frag 4 from TextNode start: 37, length: 11, rect: [10,379 468.75x92] baseline: 69.984375
|
|
"background."
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x482]
|
|
PaintableBox (Box<BODY>.hero) [9,9 502x464] overflow: [10,10 501x462]
|
|
PaintableWithLines (BlockContainer<DIV>.upper) [9,10 502x462]
|
|
TextPaintable (TextNode<#text>)
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [1,1 798x480] [children: 0] (z-index: auto)
|