mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
LibWeb: Fix dumb typos in solver helpers for abspos height
This commit is contained in:
parent
f754f45680
commit
0e295f727a
1 changed files with 2 additions and 2 deletions
|
@ -740,7 +740,7 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el
|
||||||
};
|
};
|
||||||
|
|
||||||
auto solve_for_margin_top = [&] {
|
auto solve_for_margin_top = [&] {
|
||||||
height = CSS::Size::make_px(
|
margin_top = CSS::Length::make_px(
|
||||||
height_of_containing_block
|
height_of_containing_block
|
||||||
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
|
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
|
||||||
- box.computed_values().border_top().width
|
- box.computed_values().border_top().width
|
||||||
|
@ -753,7 +753,7 @@ void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_el
|
||||||
};
|
};
|
||||||
|
|
||||||
auto solve_for_margin_bottom = [&] {
|
auto solve_for_margin_bottom = [&] {
|
||||||
height = CSS::Size::make_px(
|
margin_bottom = CSS::Length::make_px(
|
||||||
height_of_containing_block
|
height_of_containing_block
|
||||||
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
|
- top.resolved(box, height_of_containing_block_as_length).to_px(box)
|
||||||
- margin_top.length().to_px(box)
|
- margin_top.length().to_px(box)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue