mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 00:49:46 +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).
29 lines
1.7 KiB
Text
29 lines
1.7 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x64 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x48 children: not-inline
|
|
SVGSVGBox <svg> at (8,8) content-size 48x48 [SVG] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
SVGForeignObjectBox <foreignObject> at (26,36) content-size 40x40 [BFC] children: not-inline
|
|
BlockContainer <div.lmao> at (31,41) content-size 40x40 children: not-inline
|
|
SVGMaskBox <mask#rektMask> at (16,16) content-size 48x48 children: inline
|
|
TextNode <#text>
|
|
SVGGraphicsBox <use> at (16,16) content-size 48x48 children: not-inline
|
|
SVGGeometryBox <rect#rekt> at (16,16) content-size 48x48 children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,56) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x64]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x48]
|
|
SVGSVGPaintable (SVGSVGBox<svg>) [8,8 48x48] overflow: [8,8 58x68]
|
|
SVGForeignObjectPaintable (SVGForeignObjectBox<foreignObject>) [26,36 40x40] overflow: [26,36 50x50]
|
|
PaintableWithLines (BlockContainer<DIV>.lmao) [26,36 50x50]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,56 784x0]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x64] [children: 1] (z-index: auto)
|
|
SC for SVGForeignObjectBox<foreignObject> [26,36 40x40] [children: 0] (z-index: auto)
|