-
Notifications
You must be signed in to change notification settings - Fork 41
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
[mobile] Ignore overflow: hidden on body when layout is larger than the viewport #79
Comments
I see that Chromium sets a bunch of preferences for Android including |
That's not accurate, Chrome respects the overflow property on The visual viewport is what you see on the screen for any given (pinch-)zoom level. To see the layout viewport, fully zoom out. The layout viewport is set such that it's equal in size to the visual viewport when fully zoomed out. See my demo page for a more intuitive understanding. Applying One quirk to note: Chrome allows zooming out so that all the content width can be seen (to some limit). This means a really wide element can cause the layout viewport to be expanded (so that we can zoom out sufficiently far). You can prevent the layout viewport expansion by setting a minimum-scale in your viewport meta tag. |
Thanks for the details Dave. We've been working to align our viewport
model with Safari and Edge (and @staktrace has expressed some interest from
Firefox), and talking about standardizing in CSSWG. How do Safari and Edge
behave in this case?
|
@RByers fwiht (new acronym 👹 ) For what I have tested, WebKit is mostly aligned with Blink at least on my naive tests. |
Mozilla has an open issue about this. But it would be interesting to go the core and reasoning from the Google Chrome team. I think it is a reasonable choice and it should probably be specced if there is a precise algorithm for doing it.
Explanation:
When an
overflow
is applied onbody
orhtml
(only?) and the design presents an area which is wider than the viewport (minus top and bottom toolbars), Chrome on mobile will ignore the overflow and makes it possible for users to scroll horizontally and vertically.@RByers and @bokand might be able to help where in the Chromium code this is happening.
The text was updated successfully, but these errors were encountered: