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.
21 lines
1.3 KiB
Plaintext
21 lines
1.3 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 122 0+1+0] [BFC] children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [2,2 168.96875x120] baseline: 15.796875
|
|
BlockContainer <body> at [2,2] inline-block [0+1+0 168.96875 0+1+0] [0+1+0 120 0+1+0] [BFC] children: not-inline
|
|
BlockContainer <div.hmm> at [3,3] [0+1+0 166.96875 0+1+0] [0+1+0 18 0+1+100] children: inline
|
|
frag 0 from TextNode start: 0, length: 21, rect: [3,3 166.96875x18] baseline: 13.796875
|
|
"suspiciously tall box"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> at [2,122] [0+0+0 168.96875 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 800x124]
|
|
PaintableWithLines (BlockContainer<BODY>) [1,1 170.96875x122]
|
|
PaintableWithLines (BlockContainer<DIV>.hmm) [2,2 168.96875x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [2,122 168.96875x0]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [1,1 798x122] [children: 0] (z-index: auto)
|