mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-15 11:26:32 +02:00
Before this change, we always used the flex container's full available space as the width for intrinsic (height) sizing of flex items. This meant that flex lines with more than one flex item had their intrinsic height determined as if they were alone on the line. For flex row layouts, if we've already determined the flex item's main size, we now use that as the width to get the intrinsic height. This leads to more correct layouts, and also avoids some redundant work since we no longer do unnecessary sizing work with the wrong width (and can hit cache instead).
112 KiB
112 KiB