diff --git a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp index 6ca60960c4..de232faf31 100644 --- a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp @@ -289,6 +289,9 @@ void TableFormattingContext::distribute_width_to_columns() } } + if (total_preferred_width_increment == 0) + return; + for (auto& column : m_columns) { if (column.type == column_type) { CSSPixels preferred_width_increment = column_preferred_width(column) - column.min_width;