Closed Bug 1910791 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 47379 - [layout] Support min-height:min-content/etc on replaced elements.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[layout] Support min-height:min-content/etc on replaced elements.

This adds support for min-height:min-content on replaced elements.

If we don't have an aspect ratio we just return the natural-size.
If we do have an aspect ratio - we calculate the replaced size, but
ignore all the block-constraints (similar to the inline axis).

We may revisit this function, e.g:
kNormal -> kIgnoreBlockLengths -> kIgnoreInlineLengths
so return kIndefiniteSize in that case.

Bug: 40151761
Change-Id: I660e238d78fa8cf19109f0323c42c94f7dc86927

Reviewed-on: https://chromium-review.googlesource.com/5747359
WPT-Export-Revision: 25b30b4998af72e5d1d80c9e442d145a67c2ae98

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

CI Results

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

Total 6 tests

Status Summary

Firefox

PASS: 2
FAIL: 4

Chrome

PASS: 2
FAIL: 4

Safari

PASS: 4
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/17447cda0bd1 [wpt PR 47379] - [layout] Support min-height:min-content/etc on replaced elements., a=testonly https://hg.mozilla.org/integration/autoland/rev/832cf48bbf82 [wpt PR 47379] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.