diff --git a/Tests/LibWeb/Layout/expected/table/table-header-and-footer-groups.txt b/Tests/LibWeb/Layout/expected/table/table-header-and-footer-groups.txt index 9be521f3f17..d67b0892cab 100644 --- a/Tests/LibWeb/Layout/expected/table/table-header-and-footer-groups.txt +++ b/Tests/LibWeb/Layout/expected/table/table-header-and-footer-groups.txt @@ -2,18 +2,18 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (1,1) content-size 798x216 [BFC] children: not-inline TableWrapper <(anonymous)> at (9,9) content-size 300x200 [BFC] children: not-inline Box at (10,10) content-size 298x198 table-box [TFC] children: not-inline - Box at (10,10) content-size 298x0 table-footer-group children: inline - Box <(anonymous)> at (10,10) content-size 298x0 table-row children: inline - BlockContainer <(anonymous)> at (10,10) content-size 298x0 table-cell [BFC] children: inline - line 0 width: 56.109375, height: 0, bottom: 0, baseline: 4.796875 - frag 0 from TextNode start: 0, length: 6, rect: [10,10 56.109375x0] + Box at (10,10) content-size 298x99 table-footer-group children: inline + Box <(anonymous)> at (10,10) content-size 298x99 table-row children: inline + BlockContainer <(anonymous)> at (10,10) content-size 298x17.46875 table-cell [BFC] children: inline + line 0 width: 56.109375, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 6, rect: [10,10 56.109375x17.46875] "bottom" TextNode <#text> - Box at (10,10) content-size 298x0 table-header-group children: inline - Box <(anonymous)> at (10,10) content-size 298x0 table-row children: inline - BlockContainer <(anonymous)> at (10,10) content-size 298x0 table-cell [BFC] children: inline - line 0 width: 26.640625, height: 0, bottom: 0, baseline: 4.796875 - frag 0 from TextNode start: 0, length: 3, rect: [10,10 26.640625x0] + Box at (10,109) content-size 298x99 table-header-group children: inline + Box <(anonymous)> at (10,109) content-size 298x99 table-row children: inline + BlockContainer <(anonymous)> at (10,109) content-size 298x17.46875 table-cell [BFC] children: inline + line 0 width: 26.640625, height: 17.46875, bottom: 17.46875, baseline: 13.53125 + frag 0 from TextNode start: 0, length: 3, rect: [10,109 26.640625x17.46875] "top" TextNode <#text> @@ -21,11 +21,11 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x218] PaintableWithLines (TableWrapper(anonymous)) [9,9 300x200] PaintableBox (Box.table) [9,9 300x200] - PaintableBox (Box
.bottom) [10,10 298x0] - PaintableBox (Box(anonymous)) [10,10 298x0] - PaintableWithLines (BlockContainer(anonymous)) [10,10 298x0] + PaintableBox (Box
.bottom) [10,10 298x99] + PaintableBox (Box(anonymous)) [10,10 298x99] + PaintableWithLines (BlockContainer(anonymous)) [10,10 298x99] TextPaintable (TextNode<#text>) - PaintableBox (Box
.top) [10,10 298x0] - PaintableBox (Box(anonymous)) [10,10 298x0] - PaintableWithLines (BlockContainer(anonymous)) [10,10 298x0] + PaintableBox (Box
.top) [10,109 298x99] + PaintableBox (Box(anonymous)) [10,109 298x99] + PaintableWithLines (BlockContainer(anonymous)) [10,109 298x99] TextPaintable (TextNode<#text>) diff --git a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp index c52bbfe49c8..1581e7d75bc 100644 --- a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp +++ b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp @@ -587,6 +587,7 @@ static void wrap_in_anonymous(Vector>& sequence, Node* nearest_ wrapper->append_child(*child); } wrapper->set_children_are_inline(parent.children_are_inline()); + wrapper->set_line_height(parent.line_height()); if (nearest_sibling) parent.insert_before(*wrapper, *nearest_sibling); else