mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Floor scaled flex shrink factor at 1 when spec asks us to
This commit is contained in:
parent
6ecf7db87b
commit
c81e5c9d82
1 changed files with 1 additions and 1 deletions
|
@ -1387,7 +1387,7 @@ float FlexFormattingContext::calculate_intrinsic_main_size_of_flex_container(Lay
|
|||
if (flex_fraction >= 0)
|
||||
flex_fraction /= max(flex_item.box.computed_values().flex_grow(), 1.0f);
|
||||
else
|
||||
flex_fraction /= flex_item.scaled_flex_shrink_factor;
|
||||
flex_fraction /= max(flex_item.scaled_flex_shrink_factor, 1.0f);
|
||||
|
||||
// FIXME: The name max_content_flex_fraction here is misleading, since we also use this code path for min-content sizing.
|
||||
flex_item.max_content_flex_fraction = flex_fraction;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue