Open Bug 785362 Opened 12 years ago Updated 2 years ago

Incorrect image height layout with percent width in a -moz-box

Categories

(Core :: Layout, defect)

defect

Tracking

()

REOPENED
mozilla28

People

(Reporter: wilsonpage, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0 Build ID: 20120420145725 Steps to reproduce: 1. In Firefox visit http://codepen.io/WilsonPage/full/dyckt 2. Scale the window width down. Actual results: Once the image is scaled below its actual size the height reserved for the image remains at the actual height of the image. This reveals the blue background of the parent figure element. Expected results: As the window is resized, image width and height should scale down proportionally.
Component: Untriaged → Layout
Product: Firefox → Core
Attached file reduced html
This problem exists with "flex" as well as "-moz-box". This reduced test case is based on code found in the wild. Using "-webkit-flex" in WebKit/Blink does not have the same problem.
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Images
Ever confirmed: true
Keywords: testcase
OS: Mac OS X → All
Hardware: x86 → All
Summary: Incorrect image height scaling within a flexbox → Incorrect image height layout with percent width in a flexbox
Version: 12 Branch → Trunk
This seems to be fixed in Nightly, probably by bug 903880.
Status: NEW → RESOLVED
Closed: 11 years ago
Depends on: 903880
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
The original testcase is still broken, so this isn't fixed. (The fact that this affected both "flex" as well as "-moz-box" was completely by chance; they're implemented entirely independently. Bug 903880 should not have had any effect on "-moz-box" rendering, which this bug was originally filed about.)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Component: Layout: Images → Layout
No longer depends on: 903880
Attachment #816763 - Attachment description: "display: flex" test case → "display: flex" test case [fixed as of bug 903880, and different implementation under the hood anyway]
Attachment #816763 - Attachment is obsolete: true
Summary: Incorrect image height layout with percent width in a flexbox → Incorrect image height layout with percent width in a -moz-box
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: