google chrome - flex: 0 0 using new css flexbox -
in chrome set child element of display: flex element flex: 0 0. took mean no stretching or shrinking, shrinks 0 pixels. 0 have different meaning stretch , shrink, or bug in chrome?
edit here's fiddle http://jsfiddle.net/bpk4q/
you want flex: none (which special value that's equivalent flex: 0 0 auto).
the value you're using, flex: 0 0 (without 'auto'), implies flex-basis of 0%, indeed tends make things 0-sized (given flex-grow value 0). quoting flexbox spec flex shorthand:
<‘flex-basis’>
[...] when omitted flex shorthand, specified value 0%.
http://www.w3.org/tr/css3-flexbox/#flex-property
so, anyway, sounds want flex: none.
Comments
Post a Comment