diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2022-09-18 12:59:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-06 21:16:01 +0200 |
commit | 330af1a769f29b1dc3fba5a099914f62e60ddc61 (patch) | |
tree | e54994db432a7a925f41f8596de4a6a36903375e /Userland/Libraries | |
parent | 93824edeb7065fe9cd454f8ce014b73c594fc5c7 (diff) | |
download | serenity-330af1a769f29b1dc3fba5a099914f62e60ddc61.zip |
LibWeb: Fix bug in spec implementation auto_placement_cursor
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |