From d0ce61bf13df719a04ff8bf290a2b0595e4d90b2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sat, 13 May 2023 11:49:46 +0300 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp index 72fc3a97be..b0677f1762 100644 --- a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp @@ -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 track’s 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 item’s computed preferred size behaves as auto or depends on the size of its