News for hackers. Stuff that matters.
Re:Flexbox in 5 minutes by veidr on Tuesday September 08, 2015 @08:43PM (#10189039)
Yep! As mainly an Objective-C programmer (and not much of a web developer) I was very excited about flexbox when I had to work on a native OS X app that edits grids of photos in the app but also exports to web.

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.)

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.
Re:Flexbox in 5 minutes by veidr on Thursday September 10, 2015 @12:38AM (#10196169)
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.

Re:Flexbox in 5 minutes by tempodox on Wednesday September 09, 2015 @09:56AM (#10191438)
Nope, Safari 8.0.8 still has `flexbox` rendering bugs as per the posted demo link.
Re:Flexbox in 5 minutes by dmix on Tuesday September 08, 2015 @09:32PM (#10189180)
Are there no polyfills/css libraries to take care of Safari?
Re:Flexbox in 5 minutes by namuol on Tuesday September 08, 2015 @09:58PM (#10189258)
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.