ISSUE-143: Does "shrink-to-fit" width of a flexbox child depend on available space?
Does "shrink-to-fit" width of a flexbox child depend on available space?
- State:
- CLOSED
- Product:
- CSS3 Flexbox
- Raised by:
- Alex Mogilevsky
- Opened on:
- 2010-08-23
- Description:
- Summary
Does "shrink-to-fit" width of a flexbox child depend on available space?
Proposal
No. Shrink-to-fit calculations should be done in infinite space.
Note
The proposed behavior is Mozilla behavior. Webkit limits shrink-to-fit size to parent/window, as if it was a float.
However if the negative space distribution is based on combination of shrink-to-fit size and flex, adding an additional constraint on preferred size doesn't make any sense.
- 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 fantasai.lists@inkedblade.net on 2010-08-31)
- Re: [css3-flexbox] issues resolved in FTF (from jackalmage@gmail.com on 2010-08-25)
- [css3-flexbox] issues resolved in FTF (from alexmog@microsoft.com on 2010-08-25)
- ISSUE-143: Does 'shrink-to-fit' width of a flexbox child depend on available space? (from sysbot+tracker@w3.org on 2010-08-23)
Related notes:
Resolved @FTF
Shrink-to-fit calculations are performed in infinite space.
In terms of CSS3 box model, shrink-to-fit width and height should be using ‘max-content’ rather than ‘fit-content’
Display change log