mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibWeb: Fix auto height calculation for table inside BFC
`calculate_max_content_height` expects the available width as the second argument. However, the available height was mistakenly passed before. This did not seem to cause any problems because TFC currently does not respect height sizing constraints but still needs to be fixed.
This commit is contained in:
parent
ea61296738
commit
771208d2e2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue