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.
39 lines
2.5 KiB
Plaintext
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] [BFC] 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,32 103.140625x18] baseline: 13.796875
|
|
"Hello friends"
|
|
frag 1 from BlockContainer start: 0, length: 0, rect: [114.140625,11 39.234375x60] baseline: 35.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)
|