From 3270df476dd46b140e1b9de1e8328647744b56ab Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Wed, 17 Jul 2024 17:10:25 +0300 Subject: [PATCH] LibWeb: Fix flexible track sizing in GFC - Change min track sizing function to be "auto" when flex size is specified. - Never check if min track sizing funciton is flexible, because only max is allowed to be flexible. - Address FIXME in automatic_minimum_size to avoid regressions after making two fixes mentioned above. --- .../Layout/expected/grid/1fr-1000px.txt | 13 +++++++ .../LibWeb/Layout/input/grid/1fr-1000px.html | 12 ++++++ .../LibWeb/Layout/GridFormattingContext.cpp | 37 ++++++++++++++----- 3 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 Tests/LibWeb/Layout/expected/grid/1fr-1000px.txt create mode 100644 Tests/LibWeb/Layout/input/grid/1fr-1000px.html diff --git a/Tests/LibWeb/Layout/expected/grid/1fr-1000px.txt b/Tests/LibWeb/Layout/expected/grid/1fr-1000px.txt new file mode 100644 index 00000000000..a668f7701de --- /dev/null +++ b/Tests/LibWeb/Layout/expected/grid/1fr-1000px.txt @@ -0,0 +1,13 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x33 [BFC] children: not-inline + Box at (8,8) content-size 784x17 [GFC] children: not-inline + BlockContainer