-
Notifications
You must be signed in to change notification settings - Fork 495
Seems like IE ignores calc in more instances than shorthand #32
Comments
Oh, and here's the JSBin with your testcase: http://jsbin.com/keziveguna/1/edit?output |
If anyone of decent JS skill is interested in working on the calc polyfill for this, I'd really appreciate it: closingtag/calc-polyfill#9 Without IE10 support for calc in Flexbox, I can't build one of my grids in it... =[ |
+1 If anyone can get achieve this then it'd be absolutely killer for the advancement of flexbox grid systems! |
Weird. I don't know how I missed this not working in IE10, but it looks like you're right. An easy workaround, though, assuming you know whether you're in a row or column flex container, is to use flex: 0 0 auto;
width: calc(100%/3); This works for me in IE10. |
But if you're using |
I definitely agree with you @corysimmons though I guess, isn't the main point of flexbox that it eliminates the need for floats/clearfixes? It does seem really stupid that the only fix for IE10 is to set a width though. Sounds really counter-productive. |
I'm not convinced getting rid of clearfixes/floats is a good enough reason to drop browser support for IE8-9. I'd like to add that I would love for the polyfill to be fixed to take this into consideration. I'd make a pretty neat Flexbox grid system if that were the case. |
Very true, which maybe that just means flexbox truly isn't ready yet then? Once IE8 and IE9 finally vanish (IE8 is getting there, even though in theory it's already on EOL, but some XP users are still using it of course). Then maybe that's when flexbox finally makes some sense and it's worth getting rid of floats at that point? |
Tons of reasons: equal height flex items, vertical centering, proper baseline alignment, the flex properties (they still work even with a definite flex-basis), and many more. |
@philipwalton Fair enough. I'll tinker around with this tonight and see if it solves any of my problems. |
@philipwalton Seems to work pretty well. https://github.com/corysimmons/lost |
Closed via 1e0e0f5. |
https://github.com/philipwalton/flexbugs#8-flex-shorthand-doesnt-support-calc
See my comment here: closingtag/calc-polyfill#9 (comment)
The text was updated successfully, but these errors were encountered: