diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index b84e1ef4b8..64cf2ddc3e 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -403,6 +403,10 @@ void BlockFormattingContext::layout_block_level_children(BlockContainer& block_c if (is(child_box) || is(child_box)) place_block_level_element_in_normal_flow_vertically(child_box, block_container); + if (child_box.has_definite_height()) { + compute_height(child_box); + } + OwnPtr independent_formatting_context; if (child_box.can_have_children()) { independent_formatting_context = create_independent_formatting_context_if_needed(child_box);