I built a page using flexbox, and it displays properly in Chrome, but not in Safari. In Chrome, the boxes rearrange themselves and scale properly as you constrain the viewport. In Safari, the flexbox grid does not react properly in tablet at mobile. (See image and links below)
Hi @mwco, I am still searching for a solution, but in my testing, safari 9.0.1 shows correctly, but safari 9.1 has broken.
I suspect this is part of an issue with 9.1 specifically, and I am checking with all resources to find out a fix, workaround or correction styling. More info to come.
@cyberdave same problem here. I’m working with flexbox in some sections of my website. The published version works just fine in Chrome, but it crashes the layout when I run the site in Safari.
Caniuse, Can I use... Support tables for HTML5, CSS3, etc documents some issues (bugs), i.e. heights with percentages can give problems. I encountered such a problem in my design with flexbox implementation.
Same problem here. I have a Flexbox element set to 100% height that works as expected in Firefox and Chrome, but whose content is all over the place in Safari. I’m really surprised as I have up until now assumed Safari was a good browser to develop in. I am currently on the hunt for a JavaScript solution that will take out the offending elements in Safari browsers only. Any ideas where I could find a good one?
On another note, I’m keeping my fingers crossed that this bug is resolved in the upcoming Safari 10.
Hi VladimirVitaliyevich - thanks very much for your quick response and kind suggestion!
I actually already tried this earlier today but it doesn’t produce the result I’d like. It works, but it unfortunately fixes the container to a 100vh size, and I need the height to respond dynamically to the div it is nested inside of. I’ve now got a script that detects the browser and removes the elements to simply avoid the problem altogether by setting them to display:none in the CSS. Its not ideal, but it will work fine as a stopgap until the bug is fixed.