1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

LibWeb: Fix condition to determine auto tracks while sizing in GFC

This solves the issue when track with "fixed" min sizing function were
treated like "auto" during sizing.
This commit is contained in:
Aliaksandr Kalenik 2023-05-13 11:49:46 +03:00 committed by Andreas Kling
parent 2626136749
commit d0ce61bf13

View file

@ -760,7 +760,7 @@ void GridFormattingContext::resolve_intrinsic_track_sizes(GridDimension const di
}
track.base_size = base_size;
}
} else {
} else if (track.min_track_sizing_function.is_auto()) {
// Otherwise, set the tracks base size to the maximum of its items minimum contributions, floored
// at zero. The minimum contribution of an item is the smallest outer size it can have.
// Specifically, if the items computed preferred size behaves as auto or depends on the size of its