mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 01:47:00 +02:00
If a flex item has a preferred aspect ratio and the flex basis is not definite, we were falling back to using stretch-fit for the main size, since that appeared to match other browsers. However, we missed the case where we actually have a definite cross size through which the preferred aspect ratio can be naturally resolved. (cherry picked from commit db1faef786dbd1722bbe6a1f4a5616f3069bdb6a)