mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +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
|
@ -64,11 +64,11 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
frag 0 from TextNode start: 0, length: 1, rect: [51.5625,88.9375 10.3125x17.46875]
|
||||
"C"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
BlockContainer <(anonymous)> at (42.5625,17) content-size 0x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
BlockContainer <(anonymous)> at (42.5625,17) content-size 0x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
BlockContainer <(anonymous)> at (42.5625,17) content-size 0x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (42.5625,115.40625) content-size 32.265625x0 children: inline
|
||||
TextNode <#text>
|
||||
|
@ -107,17 +107,20 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|||
PaintableWithLines (BlockContainer<TD>) [36.5625,11 44.265625x110.40625]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [42.5625,17 32.265625x0]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [42.5625,17 32.265625x98.40625]
|
||||
PaintableBox (Box<TABLE>) [42.5625,17 32.265625x98.40625]
|
||||
PaintableBox (Box<TBODY>) [43.5625,18 26.265625x88.40625] overflow: [43.5625,18 28.265625x94.40625]
|
||||
PaintableBox (Box<TABLE>) [42.5625,17 32.265625x98.40625] overflow: [42.5625,17 31.265625x97.40625]
|
||||
PaintableBox (Box<TBODY>) [43.5625,18 26.265625x88.40625] overflow: [42.5625,17 29.265625x95.40625]
|
||||
PaintableBox (Box<TR>) [45.5625,20 26.265625x29.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [45.5625,20 26.265625x29.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [45.5625,51.46875 26.265625x29.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [45.5625,51.46875 26.265625x29.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [45.5625,82.9375 26.265625x29.46875]
|
||||
PaintableBox (Box<TR>) [45.5625,82.9375 26.265625x29.46875] overflow: [42.5625,17 29.265625x95.40625]
|
||||
PaintableWithLines (BlockContainer<TD>) [45.5625,82.9375 26.265625x29.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [42.5625,17 0x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [42.5625,17 0x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [42.5625,17 0x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [42.5625,115.40625 32.265625x0]
|
||||
PaintableBox (Box<TR>) [11,67.203125 67.828125x54.203125]
|
||||
PaintableWithLines (BlockContainer<TD>) [11,67.203125 23.5625x54.1875]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue