mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +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.
50 lines
3.2 KiB
Plaintext
50 lines
3.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 [0,0] [0+0+0 800 0+0+0] [0+0+0 73 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 57 0+0+8] children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [11,11 240x46] baseline: 52
|
|
frag 1 from TextNode start: 0, length: 1, rect: [254,42 10x23] baseline: 17.5
|
|
" "
|
|
frag 2 from BlockContainer start: 0, length: 0, rect: [267,11 240x46] baseline: 52
|
|
frag 3 from BlockContainer start: 0, length: 0, rect: [513,11 240x46] baseline: 52
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <textarea> at [11,11] inline-block [0+1+2 240 2+1+0] [0+1+2 46 2+1+0] [BFC] children: not-inline
|
|
BlockContainer <div> at [11,11] [0+0+0 240 0+0+0] [0+0+0 23 0+0+0] children: not-inline
|
|
BlockContainer <div> at [11,11] [0+0+0 240 0+0+0] [0+0+0 23 0+0+0] children: inline
|
|
frag 0 from TextNode start: 0, length: 17, rect: [11,11 190.28125x23] baseline: 17.5
|
|
"Bonjour mon amis!"
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <textarea> at [267,11] inline-block [0+1+2 240 2+1+0] [0+1+2 46 2+1+0] [BFC] children: not-inline
|
|
BlockContainer <div> at [267,11] [0+0+0 240 0+0+0] [0+0+0 23 0+0+0] children: not-inline
|
|
BlockContainer <div> at [267,11] [0+0+0 240 0+0+0] [0+0+0 23 0+0+0] children: inline
|
|
frag 0 from TextNode start: 0, length: 19, rect: [267,11 177.734375x23] baseline: 17.5
|
|
"Well hello friends!"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <textarea> at [513,11] inline-block [0+1+2 240 2+1+0] [0+1+2 46 2+1+0] [BFC] children: not-inline
|
|
BlockContainer <div> at [513,11] [0+0+0 240 0+0+0] [0+0+0 23 0+0+0] children: not-inline
|
|
BlockContainer <div> at [513,11] [0+0+0 240 0+0+0] [0+0+0 23 0+0+0] children: inline
|
|
frag 0 from TextNode start: 0, length: 15, rect: [513,11 154.078125x23] baseline: 17.5
|
|
"Tja hej vänner!"
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x73]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x57]
|
|
PaintableWithLines (BlockContainer<TEXTAREA>) [8,8 246x52]
|
|
PaintableWithLines (BlockContainer<DIV>) [11,11 240x23]
|
|
PaintableWithLines (BlockContainer<DIV>) [11,11 240x23]
|
|
TextPaintable (TextNode<#text>)
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TEXTAREA>) [264,8 246x52]
|
|
PaintableWithLines (BlockContainer<DIV>) [267,11 240x23]
|
|
PaintableWithLines (BlockContainer<DIV>) [267,11 240x23]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TEXTAREA>) [510,8 246x52]
|
|
PaintableWithLines (BlockContainer<DIV>) [513,11 240x23]
|
|
PaintableWithLines (BlockContainer<DIV>) [513,11 240x23]
|
|
TextPaintable (TextNode<#text>)
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x73] [children: 0] (z-index: auto)
|