mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 12:35:07 +00:00

Make the existing algorithm recursive, accounting for boxes which contain line boxes indirectly. Fixes some button alignment issues on Wikipedia.
22 lines
1.4 KiB
Text
22 lines
1.4 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x21.46875 children: inline
|
|
line 0 width: 120, height: 21.46875, bottom: 21.46875, baseline: 13.53125
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [9,9 118x19.46875]
|
|
BlockContainer <input#foo> at (9,9) content-size 118x19.46875 inline-block [BFC] children: not-inline
|
|
Box <div> at (11,10) content-size 114x17.46875 flex-container(row) [FFC] children: not-inline
|
|
BlockContainer <div> at (11,10) content-size 49.734375x17.46875 flex-item [BFC] children: inline
|
|
line 0 width: 49.734375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
|
frag 0 from TextNode start: 0, length: 4, rect: [11,10 49.734375x17.46875]
|
|
"PASS"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x21.46875]
|
|
PaintableWithLines (BlockContainer<INPUT>#foo) [8,8 120x21.46875]
|
|
PaintableBox (Box<DIV>) [9,9 118x19.46875]
|
|
PaintableWithLines (BlockContainer<DIV>) [11,10 49.734375x17.46875]
|
|
TextPaintable (TextNode<#text>)
|