Closed Bug 1653254 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 24626 - [css-grid] Clear size override in MinLogicalSizeForChild if needed

Categories

(Core :: Layout: Grid, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 24626 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/24626
Details from upstream follow.

Oriol Brufau <obrufau@igalia.com> wrote:

[css-grid] Clear size override in MinLogicalSizeForChild if needed

Grid items can get an override for their containing block size, which
for example can affect percentage resolution.
However, sometimes we need to clear such overrides, which can be checked
using ShouldClearOverrideContainingBlockContentSizeForChild.
That's already done in LogicalHeightForChild, used by MinContentForChild
and MaxContentForChild.

But when the min track sizing function is 'auto', the code may use
MinLogicalSizeForChild instead of LogicalHeightForChild. And
MinLogicalSizeForChild didn't check if the override had to be cleared.

This patch makes it perform the check.

Bug: 1103592
Change-Id: Ie6012b5099c4988217228352dc552f7437f738d2
Reviewed-on: https://chromium-review.googlesource.com/2299354
WPT-Export-Revision: 0b4bcdd357cd2db8bfc25ff25287f42f256e268f

Component: web-platform-tests → Layout: Grid
Product: Testing → Core

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 9 subtests

Status Summary

Firefox

OK : 1
PASS: 9

Chrome

OK : 1
PASS: 6
FAIL: 3

Safari

OK : 1
PASS: 9

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62030a451f2c [wpt PR 24626] - [css-grid] Clear size override in MinLogicalSizeForChild if needed, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.