Skip to content

Flex grid not working on iOS 8 #25429

Description

@IonicaBizau

Pretty much like #22223

Expected (Google Chrome emulator)

screenshot from 2018-01-24 18-25-19

Current

screen shot 2018-01-24 at 19 47 52

And this is the Bootstrap website:

screen shot 2018-01-24 at 19 48 39


Documentation mentions you support the latest stable versions of major browsers––I'm not sure if Safari on iOS 8 is included among these.

Activity

  1. jipexu commented on Jan 24, 2018

    @jipexu
    Contributor

    but you use col-md-2 col-md-10 so ... this behavior is correct ?... no ?

  2. IonicaBizau commented on Jan 24, 2018

    @IonicaBizau
    Author

    @jipexu Whoups, wrong screenshot attached. Edited. Thanks for the heads up!

  3. asyncdesign commented on Jan 24, 2018

    @asyncdesign

    This behavior is not as expected using Bootstrap - the columns should wrap when the viewport is only 320px wide, as per the Chrome emulator.

  4. IonicaBizau commented on Jan 24, 2018

    @IonicaBizau
    Author

    In case Bootstrap is not supposed to work on iOS 8, it would be handy to have some kind of CSS/JS snippets to make it work.

    I guess the issue is Safari iOS 8 doesn't support flexbox.

  5. asyncdesign commented on Jan 24, 2018

    @asyncdesign

    It works using verdor prefixes, e.g.
    -webkit-flex-wrap: wrap;

  6. mdo commented on Jan 24, 2018

    @mdo
    Member

    I'm guessing something is out of whack with our autoprefixer settings. This is meant to be functioning given we include our -webkit- prefixes in most of our grid classes. We'll need to look into it more.

  7. added
    cssSass sources or compiled CSS
    v4v4, the frozen docs on gh-pages
    on Jan 24, 2018
  8. mdo commented on Jan 24, 2018

    @mdo
    Member

    Perhaps more info at #24941 (comment).

  9. wolfy1339 commented on Jan 24, 2018

    @wolfy1339
    Contributor

    If you look in the autoprefixer settings, iOS is set to >=9, maybe it will help if it is dialed back to >=8

  10. Studio384 commented on Jan 25, 2018

    @Studio384

    Is that worth it, though? iPhone 4, iPod 4 and iPad 1 and older are the only devices that can't go beyond iOS 8. All these devices are from 2010. They are collectively worth about 1% market share from iOS devices.

    According to the documentation, Bootstrap 4 should only be supporting iOS 11, not 9 and up. Nevermind 8.

  11. XhmikosR commented on Feb 3, 2018

    @XhmikosR
    Member

    @mdo: is iOS 8 supposed to be supported?

  12. XhmikosR commented on Feb 3, 2018

    @XhmikosR
    Member

    @mdo: from our migration docs:

    Dropped IE8, IE9, and iOS 6 support. v4 is now only IE10+ and iOS 7+. For sites needing either of those, use v3.

    So we need to fix this situation.

    What should the minimum iOS version be?

  13. self-assigned this
    on Feb 3, 2018
  14. asyncdesign commented on Feb 3, 2018

    @asyncdesign

    I don't think flexbox is supported properly in iOS 8 Safari and you need vendor prefixes, so makes more sense to start at iOS 9.3 Safari anyway for reasonable flexbox support.

  15. mdo commented on Feb 12, 2018

    @mdo
    Member

    I think actually we'll want to pass on this and update our docs to be iOS 9+. iOS 8 is 1.19% of the iPhone market share according to https://data.apteligent.com/ios/. The move to iOS 9+ came in #22943 last June.

  16. XhmikosR commented on Feb 12, 2018

    @XhmikosR
    Member

    In fact, I don't think we list our current browserslist anywhere. Maybe we could load it from package.json on build time, but I'm not sure it will work since package.json isn't in the _data folder.

    Anyway, your call. I agree that iOS 8 is old plus anyone can just use autoprefixer.

  17. OndeVai commented on Mar 14, 2018

    @OndeVai

    iOS >=7 in my browserslist did the trick for me. Regardless of if you guys choose to include these prefixes in the baked css for bootstrap 4, perhaps some more documentation is in order. There's some confusion out there as it relates to market presence of IOS<=8. Browserstack, for some reason, includes ios8 instances as high priorities to test (https://www.browserstack.com/test-on-the-right-mobile-devices). So, web devs testing using browserstack will be testing bootstrap 4 in ios8 quite a bit, I'd imagine (...and pulling their hair out :)).

  18. XhmikosR commented on Mar 15, 2018

    @XhmikosR
    Member

    @mdo: What do you think about this? If you still want to drop this, please close it :)

  19. stevenjoezhang commented on Mar 23, 2018

    @stevenjoezhang

    I encountered the same problem on my iPhone6 plus, iOS8.2. The solution is to use prefixfree.js (https://github.com/LeaVerou/prefixfree), it can make flex-wrap work correctly with "-webkit" prefixes.

  20. added a commit that references this issue on Mar 31, 2018
    b1c1149
  21. added
    has-prAn open pull request addresses it
    on Mar 31, 2018
  22. added a commit that references this issue on Apr 1, 2018
    a016cbd
  23. added a commit that references this issue on Jun 27, 2018
    4f1a652
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cssSass sources or compiled CSShas-prAn open pull request addresses itv4v4, the frozen docs on gh-pages

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions