summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-27 13:48:02 +0200
committerAndreas Kling <kling@serenityos.org>2023-03-27 23:28:07 +0200
commit4f752ca791549a148bf76572a6ec76f6f8b1ad46 (patch)
tree02da6a72e86f3ac4ea06e9d24587067a15bc4cf9 /Userland
parent1ee99017e2de7c1a2bc540bf808ec36520e6a57d (diff)
downloadserenity-4f752ca791549a148bf76572a6ec76f6f8b1ad46.zip
LibWeb: Pass available inner space to BFC root auto height calculation
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
index 2362c381dc..5bb8dba717 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
@@ -340,7 +340,7 @@ void BlockFormattingContext::compute_height(Box const& box, AvailableSpace const
height = compute_height_for_replaced_element(m_state, verify_cast<ReplacedBox>(box), available_space);
} else {
if (should_treat_height_as_auto(box, available_space)) {
- height = compute_auto_height_for_block_level_element(box, available_space);
+ height = compute_auto_height_for_block_level_element(box, m_state.get(box).available_inner_space_or_constraints_from(available_space));
} else {
height = calculate_inner_height(box, available_space.height, computed_values.height()).to_px(box);
}