diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index fa0acd72f5..39b5ce67bb 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -476,7 +476,7 @@ CSSPixels BlockFormattingContext::compute_auto_height_for_block_level_element(Bo return calculate_max_content_height(box, available_space.width); } if (display.is_table_inside()) { - return calculate_max_content_height(box, available_space.height); + return calculate_max_content_height(box, available_space.width); } // https://www.w3.org/TR/CSS22/visudet.html#normal-block