Skip to content

Inconsistent cross-browser behavior for .container #20681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maiertech opened this issue Sep 9, 2016 · 4 comments
Closed

Inconsistent cross-browser behavior for .container #20681

maiertech opened this issue Sep 9, 2016 · 4 comments

Comments

@maiertech
Copy link

maiertech commented Sep 9, 2016

This issue I encountered with Bootstrap v4 alpha 4.

You can replicate the issue by viewing this page in latest Chrome on macOS and latest Safari on macOS: https://test.maier.asia/tags/pancetta/.

In Safari the post list contained in main.container takes up the entire width defined by max-width. On Chrome main.container is much smaller than its max-width.

I am not sure if this is a Chrome bug or a Safari bug or a Bootstrap bug. Which of the two renderings is expected behavior?

And should Bootstrap address this e.g. by adding a min-width?

@mdo
Copy link
Member

mdo commented Sep 9, 2016

Super interesting. Definitely a bug on someone's end lol.

@mdo
Copy link
Member

mdo commented Sep 9, 2016

I recall another issue related to this and I imagine we'll end up swapping back to width, maybe with a max-width: 100% for bulletproofing.

@jmahc
Copy link

jmahc commented Sep 10, 2016

This is peculiar.

In order to replicate Safari's rendering when using Chrome, simply add the width property equivalent to the max-width property.

@slavanga
Copy link

@mdotasia your container is a flex item because you set display: flex on the body tag.
Adding width: 100% to the container seems to work well in this case.

@mdo mdo modified the milestone: v4.0.0-alpha.5 Sep 12, 2016
mdo added a commit that referenced this issue Oct 9, 2016
- Fixes issues between float and flex grid systems where container wouldn't fill the available width in Chrome & FF (but would in Safari)
- Fixes #20681
- Fixes #17621 (basically same issue as above issue)
@mdo mdo closed this as completed in #20865 Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants