From 330af1a769f29b1dc3fba5a099914f62e60ddc61 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Sun, 18 Sep 2022 12:59:33 +0200 Subject: [PATCH] LibWeb: Fix bug in spec implementation auto_placement_cursor --- 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 42a30e73e9..e21652680b 100644 --- a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp @@ -429,9 +429,9 @@ void GridFormattingContext::run(Box const& box, LayoutMode, AvailableSpace const // 4.1.1.1. Set the column position of the cursor to the grid item's column-start line. If this is // less than the previous column position of the cursor, increment the row position by 1. - auto_placement_cursor_x = column_start; if (column_start < auto_placement_cursor_x) auto_placement_cursor_y++; + auto_placement_cursor_x = column_start; maybe_add_column_to_occupation_grid(auto_placement_cursor_x + column_span, occupation_grid); maybe_add_row_to_occupation_grid(auto_placement_cursor_y + row_span, occupation_grid);