at (350,8) content-size 100x17.46875 children: not-inline
- TableRowBox <(anonymous)> at (350,8) content-size 100x17.46875 children: not-inline
- TableCellBox <(anonymous)> at (350,8) content-size 100x17.46875 children: not-inline
- BlockContainer <(anonymous)> at (350,8) content-size 100x0 children: inline
+ TableRowBox <(anonymous)> at (350,8) content-size 2000x17.46875 children: not-inline
+ TableCellBox <(anonymous)> at (350,8) content-size 2000x17.46875 children: not-inline
+ BlockContainer <(anonymous)> at (350,8) content-size 2000x0 children: inline
TextNode <#text>
BlockContainer
at (350,8) content-size 2000x17.46875 children: inline
line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 1, rect: [350,8 6.34375x17.46875]
"1"
TextNode <#text>
- BlockContainer <(anonymous)> at (350,25.46875) content-size 100x0 children: inline
+ BlockContainer <(anonymous)> at (350,25.46875) content-size 2000x0 children: inline
TextNode <#text>
diff --git a/Tests/LibWeb/Layout/input/table/columns-width-distribution-1.html b/Tests/LibWeb/Layout/input/table/columns-width-distribution-1.html
new file mode 100644
index 0000000000..00497ed4bd
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/table/columns-width-distribution-1.html
@@ -0,0 +1,22 @@
+
+ |
+In a scene set in a lawyer's office, the lawyer sits alone and bounces a rubber ball against the wall. They receive a call from their assistant who expresses frustration over a packed waiting room and the lawyer's lack of clients. The lawyer then looks at some papers from a large envelope, which turn out to be divorce papers from their significant other. Finally, the lawyer instructs their assistant to send in the next client.
+ |
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
index af4d568d8e..05647e77fb 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
@@ -174,7 +174,7 @@ void BlockFormattingContext::compute_width(Box const& box, AvailableSpace const&
// 10.3.3 cont'd.
auto underflow_px = width_of_containing_block - total_px;
- if (!isfinite(underflow_px.value()))
+ if (available_space.width.is_intrinsic_sizing_constraint())
underflow_px = 0;
if (width.is_auto()) {