ladybird/Tests/LibWeb/Layout/expected/svg-preserve-aspect-ratio.txt
Jelle Raaijmakers 2998049fe9 LibWeb: Implement the unreachable scrollable overflow
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).
2025-07-11 08:23:46 +02:00

147 lines
7.8 KiB
Text

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x274 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x258 children: inline
frag 0 from SVGSVGBox start: 0, length: 0, rect: [9,84 100x50] baseline: 52
frag 1 from TextNode start: 0, length: 1, rect: [110,121 8x18] baseline: 13.796875
" "
frag 2 from SVGSVGBox start: 0, length: 0, rect: [119,84 100x50] baseline: 52
frag 3 from TextNode start: 0, length: 1, rect: [220,121 8x18] baseline: 13.796875
" "
frag 4 from SVGSVGBox start: 0, length: 0, rect: [229,84 100x50] baseline: 52
frag 5 from TextNode start: 0, length: 1, rect: [330,121 8x18] baseline: 13.796875
" "
frag 6 from SVGSVGBox start: 0, length: 0, rect: [339,84 100x50] baseline: 52
frag 7 from TextNode start: 0, length: 1, rect: [440,121 8x18] baseline: 13.796875
" "
frag 8 from SVGSVGBox start: 0, length: 0, rect: [449,84 100x50] baseline: 52
frag 9 from TextNode start: 0, length: 1, rect: [550,121 8x18] baseline: 13.796875
" "
frag 10 from SVGSVGBox start: 0, length: 0, rect: [559,84 100x50] baseline: 52
frag 11 from TextNode start: 0, length: 1, rect: [660,121 8x18] baseline: 13.796875
" "
frag 12 from SVGSVGBox start: 0, length: 0, rect: [669,9 50x125] baseline: 127
frag 13 from TextNode start: 0, length: 1, rect: [720,121 8x18] baseline: 13.796875
" "
frag 14 from SVGSVGBox start: 0, length: 0, rect: [729,9 50x125] baseline: 127
frag 15 from SVGSVGBox start: 0, length: 0, rect: [9,136 50x125] baseline: 127
frag 16 from TextNode start: 0, length: 1, rect: [60,248 8x18] baseline: 13.796875
" "
frag 17 from SVGSVGBox start: 0, length: 0, rect: [69,136 50x125] baseline: 127
frag 18 from TextNode start: 0, length: 1, rect: [120,248 8x18] baseline: 13.796875
" "
frag 19 from SVGSVGBox start: 0, length: 0, rect: [129,136 50x125] baseline: 127
frag 20 from TextNode start: 0, length: 1, rect: [180,248 8x18] baseline: 13.796875
" "
frag 21 from SVGSVGBox start: 0, length: 0, rect: [189,136 50x125] baseline: 127
frag 22 from TextNode start: 0, length: 1, rect: [240,248 8x18] baseline: 13.796875
" "
frag 23 from SVGSVGBox start: 0, length: 0, rect: [249,201 160x60] baseline: 62
SVGSVGBox <svg> at (9,84) content-size 100x50 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (34,84) content-size 50x50 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (119,84) content-size 100x50 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (119,84) content-size 50x50 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (229,84) content-size 100x50 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (279,84) content-size 50x50 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (339,84) content-size 100x50 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (339,84) content-size 100x100 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (449,84) content-size 100x50 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (449,59) content-size 100x100 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (559,84) content-size 100x50 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (559,34) content-size 100x100 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (669,9) content-size 50x125 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (669,9) content-size 50x50 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (729,9) content-size 50x125 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (729,46.5) content-size 50x50 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (9,136) content-size 50x125 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (9,211) content-size 50x50 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (69,136) content-size 50x125 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (69,136) content-size 125x125 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (129,136) content-size 50x125 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (91.5,136) content-size 125x125 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (189,136) content-size 50x125 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (114,136) content-size 125x125 children: not-inline
TextNode <#text>
TextNode <#text>
SVGSVGBox <svg> at (249,201) content-size 160x60 [SVG] children: inline
TextNode <#text>
SVGGeometryBox <circle> at (249,201) content-size 160x60 children: not-inline
TextNode <#text>
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x274]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x258]
SVGSVGPaintable (SVGSVGBox<svg>) [8,83 102x52]
SVGPathPaintable (SVGGeometryBox<circle>) [34,84 50x50]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [118,83 102x52]
SVGPathPaintable (SVGGeometryBox<circle>) [119,84 50x50]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [228,83 102x52]
SVGPathPaintable (SVGGeometryBox<circle>) [279,84 50x50]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [338,83 102x52] overflow: [339,84 100x100]
SVGPathPaintable (SVGGeometryBox<circle>) [339,84 100x100]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [448,83 102x52] overflow: [449,84 100x75]
SVGPathPaintable (SVGGeometryBox<circle>) [449,59 100x100]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [558,83 102x52]
SVGPathPaintable (SVGGeometryBox<circle>) [559,34 100x100]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [668,8 52x127]
SVGPathPaintable (SVGGeometryBox<circle>) [669,9 50x50]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [728,8 52x127]
SVGPathPaintable (SVGGeometryBox<circle>) [729,46.5 50x50]
SVGSVGPaintable (SVGSVGBox<svg>) [8,135 52x127]
SVGPathPaintable (SVGGeometryBox<circle>) [9,211 50x50]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [68,135 52x127] overflow: [69,136 125x125]
SVGPathPaintable (SVGGeometryBox<circle>) [69,136 125x125]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [128,135 52x127] overflow: [129,136 87.5x125]
SVGPathPaintable (SVGGeometryBox<circle>) [91.5,136 125x125]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [188,135 52x127]
SVGPathPaintable (SVGGeometryBox<circle>) [114,136 125x125]
TextPaintable (TextNode<#text>)
SVGSVGPaintable (SVGSVGBox<svg>) [248,200 162x62]
SVGPathPaintable (SVGGeometryBox<circle>) [249,201 160x60]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x274] [children: 0] (z-index: auto)