3 ms·
Ugh, CSS flexbox is such a mess. The new standard which is implemented in chrome 17 is here: http://dev.w3.org/csswg/css3-flexbox/ http://dev.w3.org/csswg/css3
by mcot2 15y ago
Ugh, CSS flexbox is such a mess. The new standard which is implemented in chrome 17 is here: http://dev.w3.org/csswg/css3-flexbox/ http://dev.w3.org/csswg/css3-flexbox/
The old standard which was implemented in previous versions of chrome and IE10 beta is here:
http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/ http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/
Lastly there is a unrelated display: box implemented by mozilla for XUL which is often confused with the flexbox standards but behaves in some weird ways. Ssee here:
http://csscurmudgeon.com/2011/11/flexbox-sucks/ http://csscurmudgeon.com/2011/11/flexbox-sucks/
Now we have an HTML5 advocacy site which is openly suggesting that people use the old webkit implementation and the unrelated mozilla spec based on XUL.
If anything, use the version in Chrome 17, its far better both in terms of property names and the flex() function.
- paulirish 15y agoBeen wanting to update the article for a while. At least added a disclaimer http://www.html5rocks.com/en/tutorials/flexbox/quick/ http://www.html5rocks.com/en/tutorials/flexbox/quick/ Hope to provide a real guide to new flexbox soon.