Skip to content

Commit 07815da

Browse files
committed
LibWeb: Don't use weird resolved() when calculating abspos box height
1 parent 7eb9e73 commit 07815da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Userland/Libraries/LibWeb/Layout/FormattingContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,9 +849,9 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el
849849
auto const& computed_max_height = box.computed_values().max_height();
850850

851851
if (!computed_max_height.is_none())
852-
used_height = min(used_height, computed_max_height.resolved(box, height_of_containing_block_as_length).resolved(box).to_px(box));
852+
used_height = min(used_height, computed_max_height.to_px(box, height_of_containing_block));
853853
if (!computed_min_height.is_auto())
854-
used_height = max(used_height, computed_min_height.resolved(box, height_of_containing_block_as_length).resolved(box).to_px(box));
854+
used_height = max(used_height, computed_min_height.to_px(box, height_of_containing_block));
855855

856856
// NOTE: The following is not directly part of any spec, but this is where we resolve
857857
// the final used values for vertical margin/border/padding.

0 commit comments

Comments
 (0)