Closed Bug 1055354 Opened 10 years ago Closed 4 years ago

Update how cross-axis sizing constraints influence "min-[width|height]:auto" on flex items w/ intrinsic aspect ratio

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1316534

People

(Reporter: dholbert, Unassigned)

References

(Blocks 2 open bugs, )

Details

(Keywords: dev-doc-needed)

Attachments

(2 files)

(This spec text changed a bit more today, so that now both the min- and max-cross-size are relevant.)
OS: Linux → All
Hardware: x86_64 → All
Summary: Use cross-axis max-size instead of cross-axis min-size to resolve "min-[width|height]:auto" on flex items w/ intrinsic aspect ratio → Update how cross-axis sizing constraints influence "min-[width|height]:auto" on flex items w/ intrinsic aspect ratio
Related issue here -- if the min-content size of an image (or anything with an intrinsic aspect ratio) is smaller than the transferred size, we should be honoring the min-content size, since the flexbox spec says to use the minimum of the two. (This is a change with respect to the spec text in bug 1015474 comment 0.)
Attached file testcase 2
(Here's a testcase for the issue in comment 4. Edge gets this correct; Firefox & Chrome do not.)
Blocks: 1436180

After bug 1316534, both testcase 1 & 2 are rendered correctly. Tested on Firefox 83.0a1 (2020-09-23).

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: