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