Re:Flexbox in 5 minutes
by andrewgleave on Wednesday September 09, 2015 @10:00AM
(#10191461)
Safari 9.0 and WebKit builds seem to show conformance in my limited testing.
HEY! Just came back here to say you are right. Installed the developer beta of OS X 10.11 today (which includes Safari 9) and tried to open some of the output files from the old project mentioned above.
They all work in OS X Safari now.
None of them really stress-test flexbox or do anything advanced; they are just grids that are supposed to resize well. But, the bugs we hit doing this basic stuff in OS X 10.10 / Safari 8 seem to be fixed.
Nope, Safari 8.0.8 still has `flexbox` rendering bugs as per the posted demo link.
Are there no polyfills/css libraries to take care of Safari?
I find it's better to be aware of/vigilant about the common bugs in flexbox's implementation, and explicitly fix specific problems as you encounter them. I've never found a polyfill that doesn't rely on hacks that lead to even-harder-to-fix problems.
It would be great for there to be a sort of CSS linter that could help here, but I haven't found one yet.
Legacy browsers were not a requirement (yay!) so I was all over flexbox, and indeed it took about 5 minutes to get it working perfectly in Firefox and Chrome. Sadly, after another 20+ hours of trying to get it working in Safari we had to declare it a failed effort, and give up on flexbox.
It almost worked but Safari had layout bugs that would render things in the wrong place, or inappropriately partially outside the visible bounds of the window.
(This was -- checks git -- April 2015. I still click every link about flexbox on HN waiting to see somebody say it Safari support for it has improved.)