Closed Bug 1815349 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 38381 - [GridNG] Clamp auto-placement to subgrid area

Categories

(Core :: Layout: Grid, task, P4)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 38381 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/38381
Details from upstream follow.

Kurt Catti-Schmidt (SCHMIDT) <kschmi@microsoft.com> wrote:

[GridNG] Clamp auto-placement to subgrid area

While prototyping auto-repeat for subgrids, I came across a subtle
placement bug with subgrids that's a sub-case of
repeat-auto-fill-001.html.

In summary, auto placement for grids depends on minor_max_end_line_,
which determines when to wrap lines. For normal grids this can extend
indefinitely, and implicit tracks will be created to fit the expanded track numbers. However, for subgrids, this can be at maximum the
subgrid span size. Implicit tracks can be created for subgrids, but
only up to the subgrid span size.

Prior to this change, we were only clamping at the very end of
placement, which was causing various "double-placement" issues,
demonstrated in the test case added.

Bug: 618969
Change-Id: Ic3972408e4dd4f2069fa1bf26c95d815c26cb929

Reviewed-on: https://chromium-review.googlesource.com/4225602
WPT-Export-Revision: 6adaadbc13f209322c30aea2ae7bce41e64f3a8a

Component: web-platform-tests → Layout: Grid
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2d31632e312a [wpt PR 38381] - [GridNG] Clamp auto-placement to subgrid area, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.