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)
Core
Layout
Tracking
()
REOPENED
mozilla28
People
(Reporter: wilsonpage, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file, 1 obsolete file)
229.39 KB,
text/html
|
Details |
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.
Updated•12 years ago
|
Component: Untriaged → Layout
Product: Firefox → Core
Comment 1•12 years ago
|
||
Comment 2•11 years ago
|
||
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.
Updated•11 years ago
|
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
Comment 3•11 years ago
|
||
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
Comment 4•11 years ago
|
||
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 → ---
Updated•11 years ago
|
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
Updated•11 years ago
|
Summary: Incorrect image height layout with percent width in a flexbox → Incorrect image height layout with percent width in a -moz-box
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•