From 07815dacf837b2213aefd48c31bd7c37f4bc8466 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 6 May 2023 18:34:51 +0200 Subject: [PATCH] LibWeb: Don't use weird resolved() when calculating abspos box height --- Userland/Libraries/LibWeb/Layout/FormattingContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp index 6261a55bf7..f4c3ba8a94 100644 --- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp @@ -849,9 +849,9 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el auto const& computed_max_height = box.computed_values().max_height(); if (!computed_max_height.is_none()) - used_height = min(used_height, computed_max_height.resolved(box, height_of_containing_block_as_length).resolved(box).to_px(box)); + used_height = min(used_height, computed_max_height.to_px(box, height_of_containing_block)); if (!computed_min_height.is_auto()) - used_height = max(used_height, computed_min_height.resolved(box, height_of_containing_block_as_length).resolved(box).to_px(box)); + used_height = max(used_height, computed_min_height.to_px(box, height_of_containing_block)); // NOTE: The following is not directly part of any spec, but this is where we resolve // the final used values for vertical margin/border/padding.