mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
LibWeb: Use the *outer* flex base size in intrinsic size calculation
This commit is contained in:
parent
aee3d79ad1
commit
e1dab7b63d
1 changed files with 1 additions and 1 deletions
|
@ -1351,7 +1351,7 @@ float FlexFormattingContext::calculate_intrinsic_main_size_of_flex_container(Lay
|
|||
else
|
||||
contribution = calculate_main_max_content_contribution(flex_item);
|
||||
|
||||
float flex_fraction = contribution - flex_item.flex_base_size;
|
||||
float flex_fraction = contribution - (flex_item.flex_base_size + flex_item.margins.main_before + flex_item.margins.main_after + flex_item.borders.main_before + flex_item.borders.main_after + flex_item.padding.main_before + flex_item.padding.main_after);
|
||||
if (flex_fraction >= 0)
|
||||
flex_fraction /= max(flex_item.box.computed_values().flex_grow(), 1.0f);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue