Bug 1838528 [wpt PR 40550] - [GridNG] Updates to grid-repeat-max-width-001.html,...
commit6932aae17c25bf3f82d8f40bc8608afced01c93b
authorKurt Catti-Schmidt <kschmi@microsoft.com>
Fri, 8 Sep 2023 18:56:43 +0000 (8 18:56 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 13 Sep 2023 11:36:39 +0000 (13 11:36 +0000)
tree2e293f5c4a848c85688ba2350012effe753c1e79
parenta24b0447d6ec863282627e59d6c1fdfe7175c9cc
Bug 1838528 [wpt PR 40550] - [GridNG] Updates to grid-repeat-max-width-001.html, a=testonly

Automatic update from web-platform-tests
[GridNG] Updates to grid-repeat-max-width-001.html

This test is validating the auto-repeat counts of a grid under certain
conditions. There is an issue with its method of verification, which
is matching a green square. This will never happen, due to the
`max-width: 200px` being set on the grid - the grid will stretch to
200px due to this and never match the green square.

This update verifies a single repeat was computed via Javascript, and
then sets the width to `min-content` (which computes to 0), and the
grid-items overflow to render a green square. If two repeats are
computed, the Javascript would return "100px 100px" and the test
would fail.

This test now passes in Chromium/WebKit/Firefox, as all properly compute
one repetition.

Bug: 1449942
Change-Id: I6ccde9511e283eb618fb7a1036b7c31b2b0bcfc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4616678
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Kurt Catti-Schmidt <kschmi@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1185253}

--

wpt-commits: 1cc4e0c2e40a8f9df5712eb330da13eb68b66598
wpt-pr: 40550
testing/web-platform/tests/css/css-grid/grid-definition/grid-repeat-max-width-001.html