Closed
Bug 1184252
Opened 9 years ago
Closed 9 years ago
img as a flex item shouldn't transfer its min-height when resolving "min-width:auto"
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
DUPLICATE
of bug 1055354
Tracking | Status | |
---|---|---|
firefox42 | --- | affected |
People
(Reporter: dholbert, Unassigned)
Details
Attachments
(1 file)
438 bytes,
text/html
|
Details |
STR: 1. Load attached testcase, with an image inside of a skinny flex container. ACTUAL RESULTS: Image is 10px wide (and 50px tall). EXPECTED RESULTS: Image should be 50px wide (and 50px tall). NOTES: Our "min-width:auto" (or "min-height:auto") code is based on some slightly-outdated spec text. In particular, this comment... http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsFlexContainerFrame.cpp#1197 ...describes some code below it, which transfers "min-height" (which defaults to 0) directly through to produce "min-width:0", per my interpretation of some old, vague spec text described in this message: http://lists.w3.org/Archives/Public/www-style/2014Jul/0053.html (The old spec text was "[...]calculated from the aspect ratio and any definite size constraints in the opposite dimension". Link: https://hg.csswg.org/drafts/annotate/bd6e4c8effaf/css-flexbox/Overview.bs#l895 ) Anyway, this text has gone through several rewritings since then, and it now is clear that "min-height" shouldn't directly be transferred through like this.
Reporter | ||
Updated•9 years ago
|
Summary: img element in flex item shouldn't transfer its min-height when resolving "min-width:auto" → img as a flex item shouldn't transfer its min-height when resolving "min-width:auto"
Reporter | ||
Comment 1•9 years ago
|
||
Actually, it looks like this is the same as bug 1055354. I'll dupe over there & post the testcase on that bug.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Updated•9 years ago
|
No longer blocks: flexbox-spec-changes
You need to log in
before you can comment on or make changes to this bug.
Description
•