5 ms·
Even if you know Flexbox you cannot use Flexbox because support lacks. http://caniuse.com/#feat=flexbox http://caniuse.com/#feat=flexbox The TL;DR: Everyone i
by Someone1234 11y ago
Even if you know Flexbox you cannot use Flexbox because support lacks.
http://caniuse.com/#feat=flexbox http://caniuse.com/#feat=flexbox
The TL;DR: Everyone is doing well except IE which is horribly broken. Only Microsoft's Edge browser has good Flexbox support, but nobody uses Edge, so therefore Flexbox is still no-go.
Come back in five years when IE 11 is a distant memory and Edge is popular.
- kozak 11y agoThere's plenty of cases (especially in the enterprise, where requirements can be tightly controlled) when non-Edge versions of IE can be safely dropped. I'm working on such a project right now, we use flexbox very extensively.
- Someone1234 11y agoThat's nice for you. For public web-sites it is still non-viable. Broken versions of IE make up too large of a % of users.
- lstamour 11y agoActually, if IE 10+ is the target for my site, I would totally use FlexBox. The list of workarounds is far shorter than CSS headaches used to be. Remember the terrible IE on Mac days? ;-)
- SonicSoul 11y agointeresting. are you also supporting mobile devices? any issues with iOS or Android to consider? I am considering flexbox but have to worry about supporting above. Luckily we don't have legacy IE to worry about so am hopeful. according to this [0] ie 10 and 11 are supported but with "partial support"? [0] http://caniuse.com/#feat=flexbox http://caniuse.com/#feat=flexbox
- lstamour 11y agoThere's a list of bugs, test cases and workarounds here: https://github.com/philipwalton/flexbugs https://github.com/philipwalton/flexbugs One bug used to affect non-IE browsers but should now be fixed in all but Safari.
- kozak 11y agoWe're developing a desktop-like single page application, so our testing on mobile is very limited. But I don't see any major issues on the few devices that we have, and caniuse.com confirms that problems are not anticipated (at least with some autoprefixing).
- kylecesmat 11y agoIts not horribly broken, IE11/10 is well supported with prefixes & past flexbox-spec properties. Autoprefixer does all the work there. For IE9/8 you could rely on polyfills like https://github.com/10up/flexibility https://github.com/10up/flexibility Listened to @_lemonmade & @snookca at a recent conference talk about how they're using Flexbox across the Shopify platform and there is no reason why other far-reaching platforms shouldn't make the switch today.
- Someone1234 11y agoSo your point is that it isn't broken but that you need to use a polyfill to fix it..? That's a very consistent message.
- deleted 11y ago[deleted]
- jordanlev 11y agoOne of the web's greatest features is progressive enhancement. So you can (and in my opinion should) use flexbox now as it has pretty decent browser support -- just make sure there is a decent fallback to something that is not-as-visually-perfect-but-still-decent (such as ye old float-based layout or display:table).
- woah 11y agoDoesn't that negate the point of flexbox which is that it's better and easier for building interfaces? If you have to build it in flexbox then build it again in floats, why build it in flexbox at all?
- jordanlev 11y agoGood point, and I'm not sure how to articulate this (which might mean I have some reconsideration to do)... but I feel like I don't need to sweat the details as much on the fallback? Like, if it looks perfect with flexbox and decent-but-not-perfect (but critically, the content is available and readable/accessible) with the fallback, I'm totally ok with that.
- toxican 11y agoDepends a lot on your needs. For my company, we don't give a shit about people on old browsers. They make up an incredibly small % of the visitors to our customer's sites and we've never once had a client ask for IE9 support or anything like that. We go with the most recent version, and one prior, and that has served us well. Never received a complaint from a client about a customer of theirs not being able to do something on a site. Some people don't have that luxury, but for the rest of us Flexbox is ready to be used.
- Dylan16807 11y agoI care about working in IE. I don't care about working elegantly in IE. Polyfills are fine.
- lojack 11y agoI've been using Flexbox more and more these days. If I need to support older browsers I use it for progressive enhancement, and test heavily. There's a lot of things it can do that are simply impossible in other layout modes, and for these I find it super useful, and I just have everything fall back to other layout modes for older browsers.
- blowski 11y agoI've used it on 4 sites in the last year, with no problems. It does depend on your target market, but then, so does everything.
- rachelandrew 11y agoThat isn't the case. Firstly, you need to take a look at the browser stats for the site that you are working on. It may be that in your case you have a very high percentage of old IE users, and so for you, flexbox isn't an option. Even then though, you may be surprised. If you use flexbox as an enhancement, to get really good alignment of UI elements for example, then you can often take advantage of it to make the experience really great in newer browsers while not locking out old ones. I would suggest taking a look at Zoe M. Gillenwater's talk. She works for Booking.com. Are they locking out old IE users? Of course not. So she demonstrates how to enhance responsiveness with flexbox. https://www.youtube.com/watch?v=_98SE8WUvLk https://www.youtube.com/watch?v=_98SE8WUvLk
- rachelandrew 11y agoIt is also worth remembering that flexbox was never designed for complete layouts. It's designed for one-dimensional layout. UI elements such as forms fields, navigation, sets of "card" etc. You run into a whole bunch of issues if you see it as the holy grail for layout, because you are using the tool for something it wasn't designed for.