4 ms·
I'm surprised there is no polyfill-like thing for flexbox, or is there?
by gbog 10y ago
I'm surprised there is no polyfill-like thing for flexbox, or is there?
- skrebbel 10y agoCan't be. Hm maybe with lots and lots of JS moving stuff around with absolute positioning, but otherwise you simply can't port flexbox to older css.
- ng12 10y agoThere is a JS polyfill. It's relatively popular, but I've never tried it. https://github.com/jonathantneal/flexibility https://github.com/jonathantneal/flexibility
- skrebbel 10y agoOh wow! Awesome, wish I knew before. This blows my mind, thanks!
- ry_ry 10y agoI'd be hesitant to use that in prod code - realistically you can achive fairly graceful degradation without it as long as you're prepared to accept a non pixel perfect layout. Also, from the issues v2.X that polyfill appears be broken in IE9 atm, which is the last one with zero flex going on. (Fun fact, our metrics have ie9 and 10 with comparable userbases - fairly standard large public facing site. 9 is fully unsupported and IE10 is no longer an active target for our QA team beyond basic layout and functionality) I do generally use a less mixin to shim all the tweener syntax tho.