Files
ladybird/Tests/LibWeb/Layout/expected/block-and-inline/inline-block-baseline-2.txt
Jelle Raaijmakers f4b04beccd LibWeb: Show inline positioning in layout tree dump
Inline nodes in our layout tree have a position, so let's show it. By
centralizing the logic for this, block nodes now lose their redundant
'content-size' dump info which is already part of the box model dump.
2025-08-27 11:53:45 +01:00

39 lines
2.5 KiB
Plaintext

Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: not-inline
BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 80 0+1+0] [BFC] children: not-inline
BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 62 0+1+8] children: inline
frag 0 from TextNode start: 0, length: 13, rect: [10,33 103.140625x18] baseline: 13.796875
"Hello friends"
frag 1 from BlockContainer start: 0, length: 0, rect: [114.140625,11 39.234375x60] baseline: 36.796875
TextNode <#text> (not painted)
BlockContainer <div.ib> at [114.140625,11] inline-block [0+1+0 39.234375 0+1+0] [0+1+0 60 0+1+0] [BFC] children: not-inline
BlockContainer <div> at [115.140625,12] [0+1+0 37.234375 0+1+0] [0+1+0 18 0+1+0] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [115.140625,12 22.546875x18] baseline: 13.796875
"1st"
TextNode <#text> (not painted)
BlockContainer <div> at [115.140625,32] [0+1+0 37.234375 0+1+0] [0+1+0 18 0+1+0] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [115.140625,32 26.28125x18] baseline: 13.796875
"2nd"
TextNode <#text> (not painted)
BlockContainer <div.float> at [115.140625,52] floating [0+1+0 37.234375 0+1+0] [0+1+0 18 0+1+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [115.140625,52 37.234375x18] baseline: 13.796875
"float"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [114.140625,51] [0+0+0 39.234375 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x82]
PaintableWithLines (BlockContainer<BODY>) [9,9 782x64]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.ib) [113.140625,10 41.234375x62]
PaintableWithLines (BlockContainer<DIV>) [114.140625,11 39.234375x20]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>) [114.140625,31 39.234375x20]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.float) [114.140625,51 39.234375x20]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [114.140625,51 39.234375x0]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [1,1 798x80] [children: 0] (z-index: auto)