Automatic update from web-platform-testsComputed min-width/height for auto depends on box.
Resolved value of min-width and min-height for auto min sizing of flex
and grid items may be 'auto'. We based this on the computed style of the
shadow including parent. Instead we should rely on whether the element
will actually be a rendered flex/grid item.
Firefox Nightly passes all added tests.
The mentioned bug fixed is actually about using the shadow including
parent for finding parent computed style instead of the flat tree
parent, but that is no longer relevant as we look at the layout tree.
Bug: 682869
Change-Id: I6e47dc264a8cdbee7fc1983ce452baf7c0df85b3
Reviewed-on: https://chromium-review.googlesource.com/948908
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540901}
wpt-commits: 85247f175ced7f78ab73facb07f6d2e4d6c9b7d8
wpt-pr: 9816
wpt-commits: 85247f175ced7f78ab73facb07f6d2e4d6c9b7d8
wpt-pr: 9816
Automatic update from web-platform-tests[css-grid] Apply automatic minimum size clamping to spanning items too
In r783213 we added the conditions from the spec to apply
the automatic minimum size clamping when required
but only to non-spanning items.
See: https://drafts.csswg.org/css-grid/#min-size-auto
This patch moves the code from GridTrackSizingAlgorithm::SizeTrackToFitNonSpanningItem()
to GridTrackSizingAlgorithmStrategy::MinSizeForChild()
that way the clamping is applied for both spanning and non-spanning items.
This somehow reverts r783213, as it was adding some duplicated code.
All the checks to know if we should use that part of the spec
were already present in GridTrackSizingAlgorithmStrategy::MinSizeForChild().
Apart from using the previous code, there's a new loop to verify
that the max track sizing function is fixed for all the tracks of the item.
BUG=809005
TEST=external/wpt/css/css-grid/grid-items/grid-minimum-size-grid-items-024.html
TEST=external/wpt/css/css-grid/grid-items/grid-minimum-size-grid-items-025.html
Change-Id: I919a83d152d8263251d3211dd5ebf175f7cf9717
Reviewed-on: https://chromium-review.googlesource.com/910049
Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com>
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Cr-Commit-Position: refs/heads/master@{#535683}
wpt-commits: 3e05847a1dd584e0459d99b4441ad974560d9903
wpt-pr: 9445
wpt-commits: 3e05847a1dd584e0459d99b4441ad974560d9903
wpt-pr: 9445