Skip to content

Commit 0e295f7

Browse files
committed
LibWeb: Fix dumb typos in solver helpers for abspos height
1 parent f754f45 commit 0e295f7

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
@@ -740,7 +740,7 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el
740740
};
741741

742742
auto solve_for_margin_top = [&] {
743-
height = CSS::Size::make_px(
743+
margin_top = CSS::Length::make_px(
744744
height_of_containing_block
745745
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
746746
- box.computed_values().border_top().width
@@ -753,7 +753,7 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el
753753
};
754754

755755
auto solve_for_margin_bottom = [&] {
756-
height = CSS::Size::make_px(
756+
margin_bottom = CSS::Length::make_px(
757757
height_of_containing_block
758758
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
759759
- margin_top.length().to_px(box)

0 commit comments

Comments
 (0)