Skip to content

Truly independent web browser

LibWeb: Distribute specified table height to empty rows

Andreas Kling251e104ed034
diff --git a/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs
index 7da3f22c902..5846eee7a26 100644
--- a/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs
+++ b/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs
@@ -2943,10 +2943,19 @@ impl<'pass> TableFormattingContext<'pass> {
.rows
.iter()
.fold(CssPixels::default(), |sum, row| sum + row.base_block_size);
+ // https://drafts.csswg.org/css-tables-3/#computing-the-table-height
+ // The height of a table is the sum of the row heights plus any cell spacing or borders.
+ let visible_rows = self.rows.iter().filter(|row| !row.is_collapsed).count();
+ let row_spacing = if visible_rows == 0 {
+ CssPixels::default()
+ } else {
+ self.border_spacing_block() * (visible_rows + 1)
+ };
if let Some(minimum) = self.min_border_box_block_size_from_flex_item {
let used = self.used_values(self.run.box_);
let collapsed = used.uses_collapsing_borders_model.get();
- let content_min = minimum - used.border_box_top(collapsed) - used.border_box_bottom(collapsed);
+ let content_min =
+ minimum - used.border_box_top(collapsed) - used.border_box_bottom(collapsed) - row_spacing;
self.table_block_size = self.table_block_size.max(content_min);
}
let table_style = self.style(self.run.box_);
@@ -2959,8 +2968,9 @@ impl<'pass> TableFormattingContext<'pass> {
let collapsed = used.uses_collapsing_borders_model.get();
specified -= used.border_box_top(collapsed) + used.border_box_bottom(collapsed);
}
- self.table_block_size = self.table_block_size.max(specified);
+ self.table_block_size = self.table_block_size.max(specified - row_spacing);
}
+ let table_percentage_basis = self.table_block_size + row_spacing;
for row in &mut self.rows {
// Reference size is the largest of
// - its initial base block size and
@@ -2981,7 +2991,7 @@ impl<'pass> TableFormattingContext<'pass> {
}
let style = self.style(self.rows[row_index].box_);
if style.height().is_percentage() {
- let used = style.height().to_px(self.table_block_size);
+ let used = style.height().to_px(table_percentage_basis);
self.rows[row_index].reference_block_size = self.rows[row_index].reference_block_size.max(used);
}
}
@@ -2998,7 +3008,7 @@ impl<'pass> TableFormattingContext<'pass> {
let cell_size = self.cell_specified_outer_block_size(
cell.box_,
&style,
- style.height().to_px(self.table_block_size),
+ style.height().to_px(table_percentage_basis),
offsets,
);
cell_box.set_content_block_size(cell_size - offsets);
@@ -3113,13 +3123,13 @@ impl<'pass> TableFormattingContext<'pass> {
.iter()
.fold(CssPixels::default(), |sum, row| sum + row.reference_block_size);
let visible = self.rows.iter().filter(|row| !row.is_collapsed).count();
- if sum == CssPixels::default() {
+ if visible == 0 {
return;
}
let auto_rows = (0..self.rows.len())
.filter(|index| !self.rows[*index].is_collapsed && self.style(self.rows[*index].box_).height().is_auto())
.collect::<Vec<_>>();
- if self.table_block_size <= sum {
+ if self.table_block_size <= sum && sum != CssPixels::default() {
// If the table block size is no larger than the sum of reference sizes, each final row block size is the
// weighted mean of the base and reference sizes that yields the correct total block size.
diff --git a/Tests/LibWeb/Layout/expected/table/abspos-table-inside-abspos-table.txt b/Tests/LibWeb/Layout/expected/table/abspos-table-inside-abspos-table.txt
index 021b55e8b37..c140b31cf2a 100644
--- a/Tests/LibWeb/Layout/expected/table/abspos-table-inside-abspos-table.txt
+++ b/Tests/LibWeb/Layout/expected/table/abspos-table-inside-abspos-table.txt
@@ -3,8 +3,8 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: inline
TableWrapper <(anonymous)> at [8,8] positioned [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] [BFC] children: not-inline
Box <div#outer> at [8,8] table-box [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] [TFC] children: not-inline
- Box <(anonymous)> at [8,8] table-row [0+0+0 200 0+0+0] [0+0+0 0 0+0+0] children: not-inline
- BlockContainer <(anonymous)> at [8,8] table-cell [0+0+0 200 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ Box <(anonymous)> at [8,8] table-row [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] children: not-inline
+ BlockContainer <(anonymous)> at [8,8] table-cell [0+0+0 200 0+0+0] [0+0+0 0 100+0+0] [BFC] children: not-inline
TableWrapper <(anonymous)> at [58,18] positioned [0+0+0 9.703125 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
Box <div#inner> at [58,18] table-box [0+0+0 9.703125 0+0+0] [0+0+0 16 0+0+0] [TFC] children: not-inline
Box <(anonymous)> at [58,18] table-row [0+0+0 9.703125 0+0+0] [0+0+0 16 0+0+0] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/table/internal-alignment.txt b/Tests/LibWeb/Layout/expected/table/internal-alignment.txt
index 4e98f675140..4803d9bebb1 100644
--- a/Tests/LibWeb/Layout/expected/table/internal-alignment.txt
+++ b/Tests/LibWeb/Layout/expected/table/internal-alignment.txt
@@ -1,16 +1,16 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 220 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 204 0+0+8] children: not-inline
- BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 204 0+0+0] children: not-inline
- TableWrapper <(anonymous)> at [300,8] [0+0+0 200 0+0+584] [0+0+0 204 0+0+0] [BFC] children: not-inline
- Box <table> at [301,9] table-box [0+1+0 198 0+1+0] [0+1+0 202 0+1+0] [TFC] children: not-inline
- Box <tbody> at [303,11] table-row-group [0+0+0 194 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- Box <tr> at [303,11] table-row [0+0+0 194 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- BlockContainer <td> at [304,86] table-cell [0+0+1 192 1+0+0] [0+0+75 48 75+0+0] [BFC] children: not-inline
- BlockContainer <p> at [304,102] [0+0+0 192 0+0+0] [16+0+0 16 0+0+16] children: inline
- frag 0 from TextNode start: 0, length: 4, rect: [304,102 26.25x16] baseline: 12.796875
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline
+ BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 200 0+0+0] children: not-inline
+ TableWrapper <(anonymous)> at [300,8] [0+0+0 200 0+0+584] [0+0+0 200 0+0+0] [BFC] children: not-inline
+ Box <table> at [301,9] table-box [0+1+0 198 0+1+0] [0+1+0 198 0+1+0] [TFC] children: not-inline
+ Box <tbody> at [303,11] table-row-group [0+0+0 194 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ Box <tr> at [303,11] table-row [0+0+0 194 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ BlockContainer <td> at [304,84] table-cell [0+0+1 192 1+0+0] [0+0+73 48 73+0+0] [BFC] children: not-inline
+ BlockContainer <p> at [304,100] [0+0+0 192 0+0+0] [16+0+0 16 0+0+16] children: inline
+ frag 0 from TextNode start: 0, length: 4, rect: [304,100 26.25x16] baseline: 12.796875
"left"
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x220] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/table/nested-table-alignment.txt b/Tests/LibWeb/Layout/expected/table/nested-table-alignment.txt
index d5fb969113e..9edd8a0a9c6 100644
--- a/Tests/LibWeb/Layout/expected/table/nested-table-alignment.txt
+++ b/Tests/LibWeb/Layout/expected/table/nested-table-alignment.txt
@@ -1,19 +1,19 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 228 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 212 0+0+8] children: not-inline
- TableWrapper <(anonymous)> at [8,8] [0+0+0 200 0+0+584] [0+0+0 212 0+0+0] [BFC] children: not-inline
- Box <table> at [9,9] table-box [0+1+0 198 0+1+0] [0+1+0 210 0+1+0] [TFC] children: not-inline
- Box <tbody> at [11,11] table-row-group [0+0+0 194 0+0+0] [0+0+0 206 0+0+0] children: not-inline
- Box <tr> at [11,11] table-row [0+0+0 194 0+0+0] [0+0+0 206 0+0+0] children: not-inline
- BlockContainer <td> at [12,12] table-cell [0+0+1 192 1+0+0] [0+0+1 204 1+0+0] [BFC] children: not-inline
- TableWrapper <(anonymous)> at [158.890625,12] [0+0+0 45.109375 0+0+146.890625] [0+0+0 204 0+0+0] [BFC] children: not-inline
- Box <table> at [159.890625,13] table-box [0+1+0 43.109375 0+1+0] [0+1+0 202 0+1+0] [TFC] children: not-inline
- Box <tbody> at [161.890625,15] table-row-group [0+0+0 39.109375 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- Box <tr> at [161.890625,15] table-row [0+0+0 39.109375 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- BlockContainer <td> at [162.890625,106] table-cell [0+0+1 37.109375 1+0+0] [0+0+91 16 91+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 5, rect: [162.890625,106 37.109375x16] baseline: 12.796875
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 224 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 208 0+0+8] children: not-inline
+ TableWrapper <(anonymous)> at [8,8] [0+0+0 200 0+0+584] [0+0+0 208 0+0+0] [BFC] children: not-inline
+ Box <table> at [9,9] table-box [0+1+0 198 0+1+0] [0+1+0 206 0+1+0] [TFC] children: not-inline
+ Box <tbody> at [11,11] table-row-group [0+0+0 194 0+0+0] [0+0+0 202 0+0+0] children: not-inline
+ Box <tr> at [11,11] table-row [0+0+0 194 0+0+0] [0+0+0 202 0+0+0] children: not-inline
+ BlockContainer <td> at [12,12] table-cell [0+0+1 192 1+0+0] [0+0+1 200 1+0+0] [BFC] children: not-inline
+ TableWrapper <(anonymous)> at [158.890625,12] [0+0+0 45.109375 0+0+146.890625] [0+0+0 200 0+0+0] [BFC] children: not-inline
+ Box <table> at [159.890625,13] table-box [0+1+0 43.109375 0+1+0] [0+1+0 198 0+1+0] [TFC] children: not-inline
+ Box <tbody> at [161.890625,15] table-row-group [0+0+0 39.109375 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ Box <tr> at [161.890625,15] table-row [0+0+0 39.109375 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ BlockContainer <td> at [162.890625,104] table-cell [0+0+1 37.109375 1+0+0] [0+0+89 16 89+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 5, rect: [162.890625,104 37.109375x16] baseline: 12.796875
"right"
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x228] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x224] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/table/stretch-to-fixed-height.txt b/Tests/LibWeb/Layout/expected/table/stretch-to-fixed-height.txt
index d6603eda05a..a4bc5d0d797 100644
--- a/Tests/LibWeb/Layout/expected/table/stretch-to-fixed-height.txt
+++ b/Tests/LibWeb/Layout/expected/table/stretch-to-fixed-height.txt
@@ -3,8 +3,8 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: not-inline
TableWrapper <(anonymous)> at [8,8] [0+0+0 24 0+0+760] [0+0+0 100 0+0+0] [BFC] children: not-inline
Box <table> at [19,19] table-box [0+1+10 2 10+1+0] [0+1+10 78 10+1+0] [TFC] children: not-inline
- Box <tbody> at [21,21] table-row-group [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: not-inline
- Box <tr> at [21,21] table-row [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: not-inline
+ Box <tbody> at [21,21] table-row-group [0+0+0 0 0+0+0] [0+0+0 74 0+0+0] children: not-inline
+ Box <tr> at [21,21] table-row [0+0+0 0 0+0+0] [0+0+0 74 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x116] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/table/table-align-center-with-margin.txt b/Tests/LibWeb/Layout/expected/table/table-align-center-with-margin.txt
index 710c836897b..ed6fb1c36f4 100644
--- a/Tests/LibWeb/Layout/expected/table/table-align-center-with-margin.txt
+++ b/Tests/LibWeb/Layout/expected/table/table-align-center-with-margin.txt
@@ -1,14 +1,14 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 404 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,100] [8+0+0 784 0+0+8] [8+0+0 204 0+0+8] children: not-inline
- TableWrapper <(anonymous)> at [108,100] [100+0+0 89.34375 0+0+594.65625] [100+0+0 204 0+0+100] [BFC] children: not-inline
- Box <table> at [109,101] table-box [0+1+0 87.34375 0+1+0] [0+1+0 202 0+1+0] [TFC] children: not-inline
- Box <tbody> at [111,103] table-row-group [0+0+0 83.34375 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- Box <tr> at [111,103] table-row [0+0+0 83.34375 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- BlockContainer <td> at [112,194] table-cell [0+0+1 81.34375 1+0+0] [0+0+91 16 91+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 10, rect: [112,194 81.34375x16] baseline: 12.796875
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 400 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,100] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline
+ TableWrapper <(anonymous)> at [108,100] [100+0+0 89.34375 0+0+594.65625] [100+0+0 200 0+0+100] [BFC] children: not-inline
+ Box <table> at [109,101] table-box [0+1+0 87.34375 0+1+0] [0+1+0 198 0+1+0] [TFC] children: not-inline
+ Box <tbody> at [111,103] table-row-group [0+0+0 83.34375 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ Box <tr> at [111,103] table-row [0+0+0 83.34375 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ BlockContainer <td> at [112,192] table-cell [0+0+1 81.34375 1+0+0] [0+0+89 16 89+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 10, rect: [112,192 81.34375x16] baseline: 12.796875
"off-center"
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x404] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x400] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/table/table-align-center.txt b/Tests/LibWeb/Layout/expected/table/table-align-center.txt
index 0151dd7bc60..29829b4fa12 100644
--- a/Tests/LibWeb/Layout/expected/table/table-align-center.txt
+++ b/Tests/LibWeb/Layout/expected/table/table-align-center.txt
@@ -1,14 +1,14 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 220 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 204 0+0+8] children: not-inline
- TableWrapper <(anonymous)> at [370.1875,8] [362.1875+0+0 59.625 0+0+362.1875] [0+0+0 204 0+0+0] [BFC] children: not-inline
- Box <table> at [371.1875,9] table-box [0+1+0 57.625 0+1+0] [0+1+0 202 0+1+0] [TFC] children: not-inline
- Box <tbody> at [373.1875,11] table-row-group [0+0+0 53.625 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- Box <tr> at [373.1875,11] table-row [0+0+0 53.625 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- BlockContainer <td> at [374.1875,102] table-cell [0+0+1 51.625 1+0+0] [0+0+91 16 91+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [374.1875,102 51.625x16] baseline: 12.796875
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline
+ TableWrapper <(anonymous)> at [370.1875,8] [362.1875+0+0 59.625 0+0+362.1875] [0+0+0 200 0+0+0] [BFC] children: not-inline
+ Box <table> at [371.1875,9] table-box [0+1+0 57.625 0+1+0] [0+1+0 198 0+1+0] [TFC] children: not-inline
+ Box <tbody> at [373.1875,11] table-row-group [0+0+0 53.625 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ Box <tr> at [373.1875,11] table-row [0+0+0 53.625 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ BlockContainer <td> at [374.1875,100] table-cell [0+0+1 51.625 1+0+0] [0+0+89 16 89+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [374.1875,100 51.625x16] baseline: 12.796875
"center"
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x220] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/table/table-cellpadding.txt b/Tests/LibWeb/Layout/expected/table/table-cellpadding.txt
index 8ccb6d4e3a3..24bd488c5f4 100644
--- a/Tests/LibWeb/Layout/expected/table/table-cellpadding.txt
+++ b/Tests/LibWeb/Layout/expected/table/table-cellpadding.txt
@@ -1,22 +1,22 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 220 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 204 0+0+8] children: not-inline
- TableWrapper <(anonymous)> at [8,8] [0+0+0 498.1875 0+0+285.8125] [0+0+0 204 0+0+0] [BFC] children: not-inline
- Box <table> at [9,9] table-box [0+1+0 496.1875 0+1+0] [0+1+0 202 0+1+0] [TFC] children: not-inline
- Box <tbody> at [11,11] table-row-group [0+0+0 492.1875 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- Box <tr> at [11,11] table-row [0+0+0 492.1875 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- BlockContainer <td> at [71,71] table-cell [0+0+60 26.640625 60+0+0] [0+0+60 16 122+0+0] [BFC] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline
+ TableWrapper <(anonymous)> at [8,8] [0+0+0 498.1875 0+0+285.8125] [0+0+0 200 0+0+0] [BFC] children: not-inline
+ Box <table> at [9,9] table-box [0+1+0 496.1875 0+1+0] [0+1+0 198 0+1+0] [TFC] children: not-inline
+ Box <tbody> at [11,11] table-row-group [0+0+0 492.1875 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ Box <tr> at [11,11] table-row [0+0+0 492.1875 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ BlockContainer <td> at [71,71] table-cell [0+0+60 26.640625 60+0+0] [0+0+60 16 118+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [71,71 26.640625x16] baseline: 12.796875
"top"
TextNode <#text> (not painted)
- BlockContainer <td> at [219.640625,102] table-cell [0+0+60 45.4375 60+0+0] [0+0+91 16 91+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [219.640625,102 45.4375x16] baseline: 12.796875
+ BlockContainer <td> at [219.640625,100] table-cell [0+0+60 45.4375 60+0+0] [0+0+89 16 89+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [219.640625,100 45.4375x16] baseline: 12.796875
"middle"
TextNode <#text> (not painted)
- BlockContainer <td> at [387.078125,133] table-cell [0+0+60 56.109375 60+0+0] [0+0+122 16 60+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [387.078125,133 56.109375x16] baseline: 12.796875
+ BlockContainer <td> at [387.078125,129] table-cell [0+0+60 56.109375 60+0+0] [0+0+118 16 60+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [387.078125,129 56.109375x16] baseline: 12.796875
"bottom"
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x220] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
diff --git a/Tests/LibWeb/Layout/expected/table/td-valign.txt b/Tests/LibWeb/Layout/expected/table/td-valign.txt
index 0d21512e910..01b4f1887c0 100644
--- a/Tests/LibWeb/Layout/expected/table/td-valign.txt
+++ b/Tests/LibWeb/Layout/expected/table/td-valign.txt
@@ -1,22 +1,22 @@
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
- BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 220 0+0+0] [BFC] children: not-inline
- BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 204 0+0+8] children: not-inline
- TableWrapper <(anonymous)> at [8,8] [0+0+0 144.1875 0+0+639.8125] [0+0+0 204 0+0+0] [BFC] children: not-inline
- Box <table> at [9,9] table-box [0+1+0 142.1875 0+1+0] [0+1+0 202 0+1+0] [TFC] children: not-inline
- Box <tbody> at [11,11] table-row-group [0+0+0 138.1875 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- Box <tr> at [11,11] table-row [0+0+0 138.1875 0+0+0] [0+0+0 198 0+0+0] children: not-inline
- BlockContainer <td> at [12,12] table-cell [0+0+1 26.640625 1+0+0] [0+0+1 16 181+0+0] [BFC] children: inline
+ BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline
+ BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline
+ TableWrapper <(anonymous)> at [8,8] [0+0+0 144.1875 0+0+639.8125] [0+0+0 200 0+0+0] [BFC] children: not-inline
+ Box <table> at [9,9] table-box [0+1+0 142.1875 0+1+0] [0+1+0 198 0+1+0] [TFC] children: not-inline
+ Box <tbody> at [11,11] table-row-group [0+0+0 138.1875 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ Box <tr> at [11,11] table-row [0+0+0 138.1875 0+0+0] [0+0+0 194 0+0+0] children: not-inline
+ BlockContainer <td> at [12,12] table-cell [0+0+1 26.640625 1+0+0] [0+0+1 16 177+0+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [12,12 26.640625x16] baseline: 12.796875
"top"
TextNode <#text> (not painted)
- BlockContainer <td> at [42.640625,102] table-cell [0+0+1 45.4375 1+0+0] [0+0+91 16 91+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [42.640625,102 45.4375x16] baseline: 12.796875
+ BlockContainer <td> at [42.640625,100] table-cell [0+0+1 45.4375 1+0+0] [0+0+89 16 89+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [42.640625,100 45.4375x16] baseline: 12.796875
"middle"
TextNode <#text> (not painted)
- BlockContainer <td> at [92.078125,192] table-cell [0+0+1 56.109375 1+0+0] [0+0+181 16 1+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [92.078125,192 56.109375x16] baseline: 12.796875
+ BlockContainer <td> at [92.078125,188] table-cell [0+0+1 56.109375 1+0+0] [0+0+177 16 1+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [92.078125,188 56.109375x16] baseline: 12.796875
"bottom"
TextNode <#text> (not painted)
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
- SC for BlockContainer<HTML> [0,0 800x220] (z-index: auto)
+ SC for BlockContainer<HTML> [0,0 800x216] (z-index: auto)
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-minimum-height-flex-items-025.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-minimum-height-flex-items-025.txt
index 4051739fb12..a3f57d6d9e6 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-minimum-height-flex-items-025.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-flexbox/flex-minimum-height-flex-items-025.txt
@@ -2,9 +2,8 @@ Harness status: OK
Found 4 tests
-3 Pass
-1 Fail
+4 Pass
Pass .outer-column-flexbox > div 1
Pass .outer-column-flexbox > div 2
Pass .outer-column-flexbox > div 3
-Fail .outer-column-flexbox > div 4
\ No newline at end of file
+Pass .outer-column-flexbox > div 4
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-1.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-1.txt
index 86f1f128f46..4dbc2d61c7f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-1.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-1.txt
@@ -2,17 +2,16 @@ Harness status: OK
Found 12 tests
-7 Pass
-5 Fail
+12 Pass
Pass Control test: Table width is 120px
Pass Control test: Table height is 120px
Pass Table-cell is 100px wide
-Fail Table-cell is 100px tall
+Pass Table-cell is 100px tall
Pass Table-row is 100px wide
-Fail Table-row is 100px tall
+Pass Table-row is 100px tall
Pass Table-row-group is 100px wide
-Fail Table-row-group is 100px tall
+Pass Table-row-group is 100px tall
Pass Table-column is 100px wide
-Fail Table-column is 100px tall
+Pass Table-column is 100px tall
Pass Table-column-group is 100px wide
-Fail Table-column-group is 100px tall
\ No newline at end of file
+Pass Table-column-group is 100px tall
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-2.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-2.txt
index 86f1f128f46..4dbc2d61c7f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-2.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-tables/bounding-box-computation-2.txt
@@ -2,17 +2,16 @@ Harness status: OK
Found 12 tests
-7 Pass
-5 Fail
+12 Pass
Pass Control test: Table width is 120px
Pass Control test: Table height is 120px
Pass Table-cell is 100px wide
-Fail Table-cell is 100px tall
+Pass Table-cell is 100px tall
Pass Table-row is 100px wide
-Fail Table-row is 100px tall
+Pass Table-row is 100px tall
Pass Table-row-group is 100px wide
-Fail Table-row-group is 100px tall
+Pass Table-row-group is 100px tall
Pass Table-column is 100px wide
-Fail Table-column is 100px tall
+Pass Table-column is 100px tall
Pass Table-column-group is 100px wide
-Fail Table-column-group is 100px tall
\ No newline at end of file
+Pass Table-column-group is 100px tall
\ No newline at end of file