-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
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
Different behavior of flexbox with (overflow-y) scroll on Safari, Firefox and Edge VS Chrome #22339
Comments
I don't know precisely why yet, but the discrepancy goes away (i.e. the Firefox rendering changes to match your expectations) if you: Demo with those changes: https://plnkr.co/edit/ANrNNl4yFvcg2NEe8PQF?p=preview |
It works, but just in Firefox on Windows, not in Safari on iOS. |
Can I ask you if the problem is of Chrome or of Safari? I mean, is Chrome following the specifications and other browsers not? Is this true? We have to use workaround for scroll div with flexbox in Bootstrap 4 in Safari? It's possible? |
Sorry, I don't know enough about the internals of Chrome & Safari to know which one is wrong on my amended plnkr. My guess would be that Safari's wrong, though, because latest Chrome/Firefox/Edge all agree. |
@dholbert Yeah, and this is a big problem. Because every browser on iOS is Safari engined! |
I don't believe this isn't a Bootstrap bug, but rather a problem with flexbox and custom CSS. Reduce your code down if you can determine it to be a bug on our end, otherwise it looks like you'll need some additional CSS to clean this up. |
What I can reduce? People better than me here and on stackoverflow doesn't know what to reduce in jsfiddles. |
|
In this page on plunker (https://plnkr.co/edit/gMbgxvUqHNDsQVe4P7ny?p=preview) there is a weird problem.
On Chrome on Windows and Android (Canary also) everything works good. I can scroll the two areas (on the left and on the right) and the top and bottom div of the page are on the top and on the bottom of my device screen. I see them anytime (see the picture below).
On iPad or iPhone, iOS, with Safari or Chrome, this is not what I get. And also on Firefox 47.0.1 on Windows.
The page is long and there is just one scroll on the right, like if there is no flexbox on the page, this code is just ignored:
Quirk example:
You can see on the iPad or iPhone just by a click on this button:
Why this behaviour?
Safari and Firefox bug or Chrome's one?
Why on Chrome everything good on Windows and Android?
And if in the new Safari in the future this will work good, how to do with the older devices with older iOS and firefox?
I will appreciate any answer. Thanks.
The text was updated successfully, but these errors were encountered: