-
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
meta viewport initial-scale=0 #62
Comments
In Gecko, the initial value is fetched here.
And converted to a float
which is used in return
which would mean And maybe the issue is happening here when comparing this value to min and max. I think this code doesn't really handle the case where the value is inferior to the viewport min size. Now the interesting bit would be to see what WebKit and Blink do with this. Do they special case and interpret 0 == bogus. |
Also to answer a bit of @miketaylr question.
so I guess, the first thing we do wrong on Gecko is that we do not clamp to 0.1 |
We currently document it informatively, by defining how it works in terms of So, aside from the fact that I am late in applying that resolution, I (and the CSSWG) would very much appreciate information about areas where implementations differ from the spec or from each other. |
@frivoal excellent. You should get this before the end of December. |
Another interesting corner case to keep in mind.
On Firefox we can't scroll on the side, nor zoom-out to see the full content. |
Note to self: To test the initial scale values issue from |
Also remember to check the initial-scale in #3789, please and thanks. |
Working on webcompat/web-bugs#3789
aka So I created a test http://la-grange.net/2016/11/30/moz/initial-2.html which indeed seems to achieve the zoom effect I was expecting. I need to test a bit more. But with that in mind I wonder if Firefox core team could reuse that for emulating/implementing the |
Zoom is also issue #41 (connecting dots) |
https://bugzilla.mozilla.org/show_bug.cgi?id=1323062#c4 shows that wsj.com is using 1.0001 values to work around an iOS9 bug, which breaks Fennec. That insane workaround is suggested here: https://forums.developer.apple.com/thread/13510 |
in https://webkit.org/blog/7367/new-interaction-behaviors-in-ios-10/ |
|
so… the specification is wrong for initial-scale. Here my tests and results. Both Safari and Chrome have 0.25 as a clamping value and not 0.1 |
@bokand is the chromium expert. Dave? |
Yeah, that's correct -- Viewport zooms are clamped to 0.25 and 5 (https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/HTMLMetaElement.cpp?type=cs&q=HTMLMetaElement&l=397). If you need someone to describe how Chrome behaves under various viewports I can help. The case you mentioned above about content being wider than the layout width is particularly quirky and I think handled in different ways among all the browsers. |
I don't know where the right place is for meta viewport -- maybe here. Maybe somewhere else. That said, Fennec got a bug report that had a weird thing:
<meta name="viewport" content="width=device-width, initial-scale=0">
Should figure out how Blink/Safari handle that and define it somewhere. @frivoal, do you guys document meta viewport in CSS Device Adapatation?
cf. webcompat/web-bugs#2293
The text was updated successfully, but these errors were encountered: