[wpt-sync] Sync PR 22975 - [css-grid] Fix percentage track sizing functions in size containment
Categories
(Core :: Layout, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 22975 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/22975
Details from upstream follow.
Oriol Brufau <obrufau@igalia.com> wrote:
[css-grid] Fix percentage track sizing functions in size containment
When finding the intrinsic sizes of a grid container, track sizing
functions that contain percentages would be indefinite, and thus should
be treated as 'auto'.This is done in GridTrackSizingAlgorithm::CalculateGridTrackSize, but
there was an early return if the grid container had size containment.
Then, instead of being treated as 'auto', the track sizing function used
to just resolve the percentage against 0.Additionally, a track sizing function of '1fr' is supposed to be treated
as 'minmax(auto, 1fr)', since only max track sizing functions can be
flexible. This fixup was also skipped, though this didn't affect the
final result.This patch fixes these problems by removing the early return and adding
some asserts.BUG=1069310
TEST=external/wpt/css/css-contain/contain-size-grid-003.html
TEST=external/wpt/css/css-contain/contain-size-grid-004.htmlChange-Id: I1b8d8645a3fdf6c697c503184b35cc8cd12925a9
Reviewed-on: https://chromium-review.googlesource.com/2144019
WPT-Export-Revision: 3e3bc813221c191f8255249ad6e940e56cb1d50f
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=21354a9fd5488c830b0b84264b6af27c80cb93dd
Assignee | ||
Comment 2•4 years ago
|
||
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3e365ef52d58 [wpt PR 22975] - [css-grid] Fix percentage track sizing functions in size containment, a=testonly https://hg.mozilla.org/integration/autoland/rev/d1189c17697d [wpt PR 22975] - Update wpt metadata, a=testonly
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3e365ef52d58
https://hg.mozilla.org/mozilla-central/rev/d1189c17697d
Description
•