[wpt-sync] Sync PR 41611 - Report space shortage for non-fitting grid items.
Categories
(Core :: Layout: Columns, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox119 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41611 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41611
Details from upstream follow.
Morten Stenshorne <mstensho@chromium.org> wrote:
Report space shortage for non-fitting grid items.
Prior to crrev.com/c/4512177 , we accidentally used the tallest
unbreakable block-size as space shortage for grid containers, when it
broke inside because some item would have to be pushed to a subsequent
column. The CL made sure that we wouldn't mix up space shortage and
tallest unbreakable block-size (those two values share storage in
NGLayoutResult). And with that, the truth was revealed: the grid layout
algorithm doesn't always report space shortage. This could cause the
column layout algorithm to cowardly give up and finish, since it
wouldn't be able to make any further progress, not knowing the column
block-size stretch amount. This would result in creating more columns
than specified.When we decide that a grid item belongs in a subsequent column, and
we're in column stretch mode (i.e. balancing is enabled, and we're past
the initial balancing pass), lay out the grid item anyway, so that we
can calculate the space shortage.Bug: 1474979
Change-Id: I714734d704eb26dd0e61966120785948522f429dReviewed-on: https://chromium-review.googlesource.com/4807905
WPT-Export-Revision: 085396879d92dfcb3290a9c25f94cded70fde334
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
| Assignee | ||
Comment 4•3 years ago
|
||
| Assignee | ||
Comment 5•3 years ago
|
||
| Assignee | ||
Comment 6•3 years ago
|
||
Comment 8•3 years ago
|
||
| bugherder | ||
Description
•