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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -