ISSUE-140: max-height on flexbox children
max-height on flexbox children
- CSS3 Flexbox
- Raised by:
- Alex Mogilevsky
- Opened on:
How does max-height on items affect alignment and box height?
Current implementation treat it inconsistently. In one implementation setting max-height on a child limits height of the flexbox.
max-height *should* be honored, and have no special effect on any other child or the flexbox as a whole.
(details of alignment behavior need to be worked out, specifically interactino of max-height with box-align:stretch)
- Related Actions Items:
- No related actions
- Related emails:
- [CSSWG] Minutes and Resolutions Oslo F2F 2010 Tuesday: GCPM, MQ, Flexbox, Multicol, box-shadow, Publications, Future F2Fs (from email@example.com on 2010-08-31)
- Re: [css3-flexbox] issues resolved in FTF (from firstname.lastname@example.org on 2010-08-25)
- [css3-flexbox] issues resolved in FTF (from email@example.com on 2010-08-25)
- ISSUE-140: max-height on flexbox children (from firstname.lastname@example.org on 2010-08-23)
On a child of a flexbox , â€˜max-lengthâ€™ specified in transverse direction (â€˜max-heightâ€™ in horizontal flexbox or â€˜max-widthâ€™ in vertical flexbox) has the effect of limiting the size of the element. It changes the effective size of the element for the purposes of calculating the size of the flexbox; it has no unusual effects beyond that.
If in a flexbox with â€œbox-align:stretchâ€ one or more children have â€˜max-heightâ€™ or â€˜max-widthâ€™ that make their dimension in transverse direction smaller than other children, such children are aligned as if with â€œbox-align:beforeâ€
Display change log