mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Compute inline-block baselines by traversing into nested block children to find the last in-flow line box, using correct offsets relative to the margin box edge. Also ensure inline-flex and inline-grid containers always derive their baseline from content (per CSS Align), and add special handling for <input> elements which have `overflow: clip` in the UA stylesheet but should still align adjacent text with their internal content.
35 lines
2.2 KiB
Plaintext
35 lines
2.2 KiB
Plaintext
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 112 0+1+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 94 0+1+8] children: inline
|
|
frag 0 from TextNode start: 0, length: 13, rect: [10,32 103.140625x18] baseline: 13.796875
|
|
"Hello friends"
|
|
frag 1 from BlockContainer start: 0, length: 0, rect: [114.140625,11 202x92] baseline: 35.796875
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.ib> at [114.140625,11] inline-block [0+1+0 202 0+1+0] [0+1+0 92 0+1+0] [BFC] children: not-inline
|
|
BlockContainer <div> at [115.140625,12] [0+1+0 200 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 200 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.whee> at [115.140625,52] [0+1+0 200 0+1+0] [0+1+0 50 0+1+0] children: not-inline
|
|
BlockContainer <(anonymous)> at [114.140625,103] [0+0+0 202 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 800x114]
|
|
PaintableWithLines (BlockContainer<BODY>) [9,9 782x96]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.ib) [113.140625,10 204x94]
|
|
PaintableWithLines (BlockContainer<DIV>) [114.140625,11 202x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>) [114.140625,31 202x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.whee) [114.140625,51 202x52]
|
|
PaintableWithLines (BlockContainer(anonymous)) [114.140625,103 202x0]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [1,1 798x112] [children: 0] (z-index: auto)
|