Closed
Bug 798666
Opened 14 years ago
Closed 14 years ago
flexbox doesn't honor min-height on horizontal auto-height flex container
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(2 files, 1 obsolete file)
|
352 bytes,
text/html
|
Details | |
|
10.92 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
STR: enable flexbox pref (layout.css.flexbox.enabled), and load testcase
EXPECTED RESULTS: green area should be 800px tall
ACTUAL RESULTS: green area is only 1 line tall
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•14 years ago
|
||
Still need to add a reftest, but here's the fix.
| Assignee | ||
Comment 2•14 years ago
|
||
Added reftests.
Note that I've already got reftests to address "min-height/max-height" in _vertical_ auto-height flex containers. The reftests here are for _horizontal_ auto-height flex containers, with min-height / max-height constraints.
(plus a reftest for a vertical auto-width flex container, with min-width/max-width, for symmetry)
So -- the idea behind the code-change is:
(a) if cross-size is unconstrained, we shrinkwrap our flex line's cross-size, **but** we must respect min/max sizing constraints.
(b) If those min/max constraints end up affecting our cross-size, we need to update our line's cross-size. (so that positioning / stretch-sizing within the line will be working with the correct cross-size) (That's why I changed the conditions under which we call lineCrossAxisPosnTracker.SetLineCrossSize().)
Attachment #668697 -
Attachment is obsolete: true
Attachment #668743 -
Flags: review?(dbaron)
Comment on attachment 668743 [details] [diff] [review]
fix v1a (now w/ reftests)
r=dbaron
Attachment #668743 -
Flags: review?(dbaron) → review+
| Assignee | ||
Comment 4•14 years ago
|
||
Unprefixed testcase (per bug 801098), and pushed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a70b58fcf059
Flags: in-testsuite+
Comment 5•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•