mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:57:44 +00:00
LibWeb: Table box width should be relative to wrapper containing block
This commit is contained in:
parent
709fe01f52
commit
80578ead45
2 changed files with 8 additions and 1 deletions
|
@ -210,7 +210,9 @@ void TableFormattingContext::compute_table_width()
|
|||
|
||||
auto& computed_values = table_box().computed_values();
|
||||
|
||||
CSSPixels width_of_table_containing_block = m_state.get(*table_box().containing_block()).content_width();
|
||||
// Percentages on 'width' and 'height' on the table are relative to the table wrapper box's containing block,
|
||||
// not the table wrapper box itself.
|
||||
CSSPixels width_of_table_containing_block = m_state.get(*table_wrapper().containing_block()).content_width();
|
||||
|
||||
// The row/column-grid width minimum (GRIDMIN) width is the sum of the min-content width
|
||||
// of all the columns plus cell spacing or borders.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue