Bug 1686544 [wpt PR 27158] - [GridNG] Apply justify-content, alignment-content.,...
commit9829a12b96989102d206408091aa8b4fc24fbf84
authorIan Kilpatrick <ikilpatrick@chromium.org>
Thu, 21 Jan 2021 21:54:45 +0000 (21 21:54 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 22 Jan 2021 04:14:07 +0000 (22 04:14 +0000)
treedb1802a32ceda09380b14b2d296dce7903738593
parent09eb669a237e4e3a485242efa7123fa29717d674
Bug 1686544 [wpt PR 27158] - [GridNG] Apply justify-content, alignment-content., a=testonly

Automatic update from web-platform-tests
[GridNG] Apply justify-content, alignment-content.

As above. This patch implements the core content alignment logic. E.g.
determining the offset at which the tracks should start, and the space
between them (gutter-size - this include the grid-gap if any).

Creates a new struct "TrackAlignmentGeometry" which contains these
two values. Effectively the process is now:
GridGap -> TrackAlignmentGeometry -> SetOffsets.

The most significant difference is that TrackAlignmentGeometry includes
the grid-gap, and the BorderScrollPadding start offset.

Bug: 1045599
Change-Id: Idb4d550f0d8b2aca306945a46d41b5a30a20bca4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622586
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Ethan Jimenez <ethavar@microsoft.com>
Reviewed-by: Kurt Catti-Schmidt <kschmi@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#845494}

--

wpt-commits: c71b45a1c65da368339f4db424a3740d7f8ea7f3
wpt-pr: 27158
testing/web-platform/tests/css/css-grid/alignment/grid-content-distribution-026.html [new file with mode: 0644]
testing/web-platform/tests/css/css-grid/alignment/grid-content-distribution-027.html [new file with mode: 0644]
testing/web-platform/tests/css/css-grid/alignment/grid-content-distribution-028.html [new file with mode: 0644]