flexboxgrid icon indicating copy to clipboard operation
flexboxgrid copied to clipboard

Flexbox Grid Breaks on Safari 6/7

Open nickclicksco opened this issue 8 years ago • 5 comments

I have just been using Browserstack to test Flexbox Grid and it appears it doesn't work on Safari 6/7 however on 'can I use' Flexbox is compatible with those versions.

If you use Safari 6/7 and visit the homepage http://flexboxgrid.com/ you will notice all of the grids break.

Any idea why this might be happening and how I can resolve this?

nickclicksco avatar Oct 13 '16 08:10 nickclicksco

screenshot 2016-10-13 09 11 16

nickclicksco avatar Oct 13 '16 08:10 nickclicksco

Also seeing the same issue on Safari 8

leahschuster avatar Oct 20 '16 01:10 leahschuster

Flexbox in general is not 100% compatible on those browsers without using the proper -webkit- prefix. It is possible that the author doesn't care to support browser versions that far back, as Autoprefixer can be set to last 2 versions as opposed to last 3 versions for example. No Sass/LESS is provided in this repo, so you can try converting the final CSS into whatever preprocessor you use, and then recompile with adjusted Autoprefixer settings for the browsers you want to target.

bebaps avatar Oct 21 '16 05:10 bebaps

You can use gulp-autoprefixer or any other autoprefixer version with filters: ['not ie <= 9', 'iOS > 6', 'Safari > 2'];

lgg avatar Oct 29 '16 22:10 lgg

Flexboxgrid uses max-width instead of the flex property. Apparently Safari does not like that. If the max-width rules are replaced by flex AND prefixes are added like mentioned above, it should work in Safari.

https://stackoverflow.com/questions/35137085/flexbox-code-working-on-all-browsers-except-safari-why https://stackoverflow.com/questions/36636243/flex-items-not-stacking-properly-in-safari

MrsHannahJ avatar Sep 29 '17 22:09 MrsHannahJ