mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Fix bug in spec implementation auto_placement_cursor
This commit is contained in:
parent
93824edeb7
commit
330af1a769
Notes:
sideshowbarker
2024-07-17 22:09:47 +09:00
Author: https://github.com/martinfalisse
Commit: 330af1a769
Pull-request: https://github.com/SerenityOS/serenity/pull/15271
Reviewed-by: https://github.com/MacDue
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue