Closed Bug 1147532 Opened 10 years ago Closed 10 years ago

Flex item with aspect ratio & "max-width" still renders with native height

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 1030952

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(1 file)

Attached file testcase 1
STR: Load attached testcase. EXPECTED RESULTS: Image renders, scaled down naturally to a (small) wider-than-tall rectangular area. ACTUAL RESULTS: Image renders, squashed, to a taller-than-wide rectangular area. NOTES: * The image's native resolution is 400px wide & 200px tall. * The image's width is horizontally constrained via "max-width: 150px". * The image's height isn't directly constrained. Chrome & Opera 12.16 (Presto) give EXPECTED RESULTS. Firefox Nightly gives ACTUAL RESULTS. I'm filing this for a bug that was emailed to me - I'm not 100% sure what the spec requires of this scenario yet, but I'm pretty sure our rendering is wrong.
Summary: Flex item with aspect ratio & shrunken width still renders with native height → Flex item with aspect ratio & "max-width" still renders with native height
Attachment #8583247 - Attachment description: test-flex.html → testcase 1
Pretty sure this is a dupe of bug 1030952, actually. A quick check in GDB shows that the problem described in bug 1030952 comment 2 is still happening here.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
I verified that this bug's testcase produces EXPECTED RESULTS in latest Nightly 49.0a1 (2016-05-02) (which has the duplicate-target bug's fix). --> Verified duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: