Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4563ea15ecc7ab49dd3cdaed9df719b15e52be4a
https://github.com/WebKit/WebKit/commit/4563ea15ecc7ab49dd3cdaed9df719b15e52be4a
Author: Sammy Gill <[email protected]>
Date: 2026-09-17 (Thu, 17 Sep 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/UnplacedGridItem.cpp
Log Message:
-----------
[GFC] Explicitly positioned item's start line should always be before end.
https://bugs.webkit.org/show_bug.cgi?id=324493
rdar://problem/187732841
Reviewed by Alan Baradlay.
https://drafts.csswg.org/css-grid-1/#grid-placement-errors
The grid spec has some text on how to handle error cases with respect to
the placement of a grid item and in this patch we address two specific
cases mentioned:
1.) If a start line is past an end line we swap the two so that start is
always less then end.
2.) If the start and end lines are the same we drop the end line and
make it one past the start.
We can do this in UnplacedGridItem::resolveDefinitePosition which is the
function responsible for returning the line numbers for an explicitly
placed item.
Canonical link: https://commits.webkit.org/321365@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications