mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57:35 +00:00
LibWeb: Derive baseline from rightmost descendant
Make the existing algorithm recursive, accounting for boxes which contain line boxes indirectly. Fixes some button alignment issues on Wikipedia.
This commit is contained in:
parent
2a8f558911
commit
bab1d09d92
14 changed files with 188 additions and 36 deletions
|
@ -52,11 +52,11 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
frag 0 from TextNode start: 0, length: 1, rect: [75.5625,81.46875 9.34375x17.46875]
|
||||
"B"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
BlockContainer <(anonymous)> at (58.5625,25) content-size 0x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
BlockContainer <(anonymous)> at (58.5625,25) content-size 0x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
BlockContainer <(anonymous)> at (58.5625,25) content-size 0x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (58.5625,115.9375) content-size 48.265625x0 children: inline
|
||||
TextNode <#text>
|
||||
|
@ -95,14 +95,17 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|||
PaintableWithLines (BlockContainer<TD>) [48.5625,15 68.265625x110.9375]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [58.5625,25 48.265625x0]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [58.5625,25 48.265625x90.9375]
|
||||
PaintableBox (Box<TABLE>) [58.5625,25 48.265625x90.9375]
|
||||
PaintableBox (Box<TBODY>) [63.5625,30 34.265625x74.9375] overflow: [63.5625,30 36.265625x78.9375]
|
||||
PaintableBox (Box<TABLE>) [58.5625,25 48.265625x90.9375] overflow: [58.5625,25 43.265625x85.9375]
|
||||
PaintableBox (Box<TBODY>) [63.5625,30 34.265625x74.9375] overflow: [58.5625,25 41.265625x83.9375]
|
||||
PaintableBox (Box<TR>) [65.5625,32 34.265625x37.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [65.5625,32 34.265625x37.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [65.5625,71.46875 34.265625x37.46875]
|
||||
PaintableBox (Box<TR>) [65.5625,71.46875 34.265625x37.46875] overflow: [58.5625,25 41.265625x83.9375]
|
||||
PaintableWithLines (BlockContainer<TD>) [65.5625,71.46875 34.265625x37.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [58.5625,25 0x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [58.5625,25 0x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [58.5625,25 0x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [58.5625,115.9375 48.265625x0]
|
||||
PaintableBox (Box<TR>) [15,71.46875 99.828125x54.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [15,71.46875 31.5625x54.46875]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue