mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +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.
193 lines
14 KiB
Plaintext
193 lines
14 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 218 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 202 0+0+8] children: not-inline
|
|
BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <div.horizontal> at [8,8] [0+0+0 784 0+0+0] [0+0+0 202 0+0+0] children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [9,9 161.90625x200] baseline: 105.296875
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <table> at [9,9] inline-block [0+1+0 161.90625 0+1+0] [0+1+0 200 0+1+0] [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at [9,9] [0+0+0 161.90625 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
TableWrapper <(anonymous)> at [9,9] inline-block [0+0+0 161.90625 0+0+0] [0+0+0 200 0+0+0] [BFC] children: not-inline
|
|
Box <(anonymous)> at [9,9] inline-table table-box [0+0+0 161.90625 0+0+0] [0+0+0 200 0+0+0] [TFC] children: not-inline
|
|
Box <tbody> at [9,9] table-row-group [0+0+0 161.90625 0+0+0] [0+0+0 200 0+0+0] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
Box <tr> at [9,9] table-row [0+0+0 161.90625 0+0+0] [0+0+0 40 0+0+0] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [30,20] table-cell [0+1+20 14.265625 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [30,20 14.265625x18] baseline: 13.796875
|
|
"A"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [86.265625,20] table-cell [0+1+20 12.546875 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [87.859375,20 9.34375x18] baseline: 13.796875
|
|
"B"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [140.8125,20] table-cell [0+1+20 9.09375 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [142.1875,20 6.34375x18] baseline: 13.796875
|
|
"1"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
Box <tr> at [9,49] table-row [0+0+0 161.90625 0+0+0] [0+0+0 40 0+0+0] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [30,60] table-cell [0+1+20 14.265625 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [31.96875,60 10.3125x18] baseline: 13.796875
|
|
"C"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [86.265625,60] table-cell [0+1+20 12.546875 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [86.96875,60 11.140625x18] baseline: 13.796875
|
|
"D"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [140.8125,60] table-cell [0+1+20 9.09375 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [140.953125,60 8.8125x18] baseline: 13.796875
|
|
"2"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
Box <tr> at [9,89] table-row [0+0+0 161.90625 0+0+0] [0+0+0 40 0+0+0] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [30,100] table-cell [0+1+20 14.265625 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [31.203125,100 11.859375x18] baseline: 13.796875
|
|
"E"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [86.265625,100] table-cell [0+1+20 12.546875 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [86.265625,100 12.546875x18] baseline: 13.796875
|
|
"F"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [140.8125,100] table-cell [0+1+20 9.09375 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [140.8125,100 9.09375x18] baseline: 13.796875
|
|
"3"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
Box <tr> at [9,129] table-row [0+0+0 161.90625 0+0+0] [0+0+0 40 0+0+0] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [30,140] table-cell [0+1+20 14.265625 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [30.515625,140 13.234375x18] baseline: 13.796875
|
|
"G"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [86.265625,140] table-cell [0+1+20 12.546875 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [86.421875,140 12.234375x18] baseline: 13.796875
|
|
"H"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [140.8125,140] table-cell [0+1+20 9.09375 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [141.484375,140 7.75x18] baseline: 13.796875
|
|
"4"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
Box <tr> at [9,169] table-row [0+0+0 161.90625 0+0+0] [0+0+0 40 0+0+0] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [30,180] table-cell [0+1+20 14.265625 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [34.828125,180 4.59375x18] baseline: 13.796875
|
|
"I"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [86.265625,180] table-cell [0+1+20 12.546875 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [88.078125,180 8.90625x18] baseline: 13.796875
|
|
"J"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> (not painted) children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <td> at [140.8125,180] table-cell [0+1+20 9.09375 20+1+0] [0+1+10 18 10+1+0] [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [141.125,180 8.453125x18] baseline: 13.796875
|
|
"5"
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> at [9,9] [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> at [9,9] [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> at [9,9] [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
BlockContainer <(anonymous)> at [8,210] [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 800x218]
|
|
PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x202]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>.horizontal) [8,8 784x202]
|
|
PaintableWithLines (BlockContainer<TABLE>) [8,8 163.90625x202]
|
|
PaintableWithLines (BlockContainer(anonymous)) [9,9 161.90625x0]
|
|
PaintableWithLines (TableWrapper(anonymous)) [9,9 161.90625x200]
|
|
PaintableBox (Box(anonymous)) [9,9 161.90625x200]
|
|
PaintableBox (Box<TBODY>) [9,9 161.90625x200]
|
|
PaintableBox (Box<TR>) [9,9 161.90625x40]
|
|
PaintableWithLines (BlockContainer<TD>) [9,9 56.265625x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [65.265625,9 54.546875x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [119.8125,9 51.09375x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableBox (Box<TR>) [9,49 161.90625x40]
|
|
PaintableWithLines (BlockContainer<TD>) [9,49 56.265625x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [65.265625,49 54.546875x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [119.8125,49 51.09375x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableBox (Box<TR>) [9,89 161.90625x40]
|
|
PaintableWithLines (BlockContainer<TD>) [9,89 56.265625x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [65.265625,89 54.546875x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [119.8125,89 51.09375x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableBox (Box<TR>) [9,129 161.90625x40]
|
|
PaintableWithLines (BlockContainer<TD>) [9,129 56.265625x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [65.265625,129 54.546875x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [119.8125,129 51.09375x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableBox (Box<TR>) [9,169 161.90625x40]
|
|
PaintableWithLines (BlockContainer<TD>) [9,169 56.265625x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [65.265625,169 54.546875x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<TD>) [119.8125,169 51.09375x40]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [9,9 0x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [9,9 0x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [9,9 0x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,210 784x0]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x218] [children: 0] (z-index: auto)
|