Files
ladybird/Tests/LibWeb/Layout/expected/block-and-inline/inline-block-leading-and-trailing-metrics.txt
Amish K. Naidu 884b7fcbf5 LibWeb: Peek after extracting next chunk in InlineLevelIterator
Peek is used to determine if the current chunk is
the last and if so, add trailing box metrics.
For this to work correctly, it must be done only
after calling next(), otherwise peek gives us the
current chunk.
2025-10-20 12:37:25 +01:00

83 lines
5.2 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 [0,0] [0+0+0 800 0+0+0] [0+0+0 76 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 60 0+0+8] children: not-inline
BlockContainer <div#a> at [9,9] [0+1+0 782 0+1+0] [0+1+0 18 0+1+0] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [9,9 88.453125x18] baseline: 13.796875
BlockContainer <i> at [9,9] inline-block [0+0+0 88.453125 0+0+0] [0+0+0 18 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 12, rect: [9,9 88.453125x18] baseline: 13.796875
"inline-block"
TextNode <#text> (not painted)
InlineNode <b> at [117.453125,9] [0+0+20 41.296875 0+0+0] [0+0+0 18 0+0+0]
frag 0 from TextNode start: 0, length: 6, rect: [117.453125,9 41.296875x18] baseline: 13.796875
"inline"
TextNode <#text> (not painted)
InlineNode <u> at [158.75,9] [0+0+0 41.296875 0+0+0] [0+0+0 18 0+0+0]
frag 0 from TextNode start: 0, length: 6, rect: [158.75,9 41.296875x18] baseline: 13.796875
"inline"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,28] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
BlockContainer <div#b> at [9,29] [0+1+0 782 0+1+0] [0+1+0 18 0+1+0] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [70.296875,29 88.453125x18] baseline: 13.796875
InlineNode <i> at [9,29] [0+0+0 41.296875 20+0+0] [0+0+0 18 0+0+0]
frag 0 from TextNode start: 0, length: 6, rect: [9,29 41.296875x18] baseline: 13.796875
"inline"
TextNode <#text> (not painted)
BlockContainer <b> at [70.296875,29] inline-block [0+0+0 88.453125 0+0+0] [0+0+0 18 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 12, rect: [70.296875,29 88.453125x18] baseline: 13.796875
"inline-block"
TextNode <#text> (not painted)
InlineNode <u> at [158.75,29] [0+0+0 41.296875 0+0+0] [0+0+0 18 0+0+0]
frag 0 from TextNode start: 0, length: 6, rect: [158.75,29 41.296875x18] baseline: 13.796875
"inline"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,48] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
BlockContainer <div#c> at [9,49] [0+1+0 782 0+1+0] [0+1+0 18 0+1+0] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [131.59375,49 88.453125x18] baseline: 13.796875
InlineNode <i> at [9,49] [0+0+0 41.296875 0+0+0] [0+0+0 18 0+0+0]
frag 0 from TextNode start: 0, length: 6, rect: [9,49 41.296875x18] baseline: 13.796875
"inline"
TextNode <#text> (not painted)
InlineNode <b> at [70.296875,49] [0+0+20 41.296875 20+0+0] [0+0+0 18 0+0+0]
frag 0 from TextNode start: 0, length: 6, rect: [70.296875,49 41.296875x18] baseline: 13.796875
"inline"
TextNode <#text> (not painted)
BlockContainer <u> at [131.59375,49] inline-block [0+0+0 88.453125 0+0+0] [0+0+0 18 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 12, rect: [131.59375,49 88.453125x18] baseline: 13.796875
"inline-block"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,68] [0+0+0 784 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 800x76]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x60]
PaintableWithLines (BlockContainer<DIV>#a) [8,8 784x20]
PaintableWithLines (BlockContainer<I>) [9,9 88.453125x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<B>) [97.453125,9 61.296875x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<U>) [158.75,9 41.296875x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,28 784x0]
PaintableWithLines (BlockContainer<DIV>#b) [8,28 784x20]
PaintableWithLines (InlineNode<I>) [9,29 61.296875x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<B>) [70.296875,29 88.453125x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<U>) [158.75,29 41.296875x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,48 784x0]
PaintableWithLines (BlockContainer<DIV>#c) [8,48 784x20]
PaintableWithLines (InlineNode<I>) [9,49 41.296875x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<B>) [50.296875,49 81.296875x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<U>) [131.59375,49 88.453125x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,68 784x0]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x76] [children: 0] (z-index: auto)