1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:58:11 +00:00

LibWeb: Set table wrapper width from the table box

Fixes #20385 and some Wikipedia pages, for example:
https://en.wikipedia.org/wiki/2022%E2%80%9323_UEFA_Champions_League_knockout_phase
This commit is contained in:
Andi Gallo 2023-08-16 08:18:07 +00:00 committed by Alexander Kalenik
parent f6dd512b65
commit 65854c3411
4 changed files with 77 additions and 2 deletions

View file

@ -638,6 +638,8 @@ void TableFormattingContext::compute_table_width()
}
table_box_state.set_content_width(used_width);
auto& table_wrapper_box_state = m_state.get_mutable(table_wrapper());
table_wrapper_box_state.set_content_width(table_box_state.border_box_width());
}
CSSPixels TableFormattingContext::compute_columns_total_used_width() const