LibWeb: Modify table formatting according to spec

Makes Sub, Super, TextBottom, TextTop vertical aligns equal to Baseline
This commit is contained in:
Pavel Shliak 2024-10-21 01:12:13 +04:00 committed by Sam Atkins
commit 38bb8ce0de
Notes: github-actions[bot] 2024-11-04 14:55:29 +00:00
3 changed files with 72 additions and 16 deletions

View file

@ -0,0 +1,38 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline
BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
TextNode <#text>
BlockContainer <body> at (8,8) content-size 784x100 children: not-inline
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
TextNode <#text>
TableWrapper <(anonymous)> at (8,8) content-size 204x100 [BFC] children: not-inline
Box <table> at (8,8) content-size 204x100 table-box [TFC] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <tbody> at (8,8) content-size 204x100 table-row-group children: not-inline
Box <tr> at (8,8) content-size 204x100 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (10,10) content-size 200x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 15, rect: [10,10 129.296875x17] baseline: 13.296875
"Text at the top"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,108) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]
PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0]
PaintableWithLines (TableWrapper(anonymous)) [8,8 204x100]
PaintableBox (Box<TABLE>) [8,8 204x100]
PaintableBox (Box<TBODY>) [8,8 204x100]
PaintableBox (Box<TR>) [8,8 204x100]
PaintableWithLines (BlockContainer<TD>) [8,8 204x100]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,108 784x0]