Bug 218379
Summary: | Page Zoom in Safari on iOS is not working when viewport meta is set to explicit width | ||
---|---|---|---|
Product: | WebKit | Reporter: | Akash D Souza <akashdsouza79> |
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Minor | CC: | bfulgham, simon.fraser, smoley, thorton, webkit-bug-importer, wenson_hsieh, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 13 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 13 |
Akash D Souza
I have a page that isn't mobile optimized and so I have the width set to 1024px in the viewport meta. This works as expected in all browsers. However, the page zoom feature available in Safari is not working and the dimensions of the page remain the same.
When I completely remove the viewport meta tag, the feature works. This is confusing as I assumed that not mentioning the viewport meta is the same as specifying width as 980px in the page.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Smoley
Thanks for filing, can you please attach a test case or link to a page affected by this issue?
Also, are you referring to the zoom buttons in the Page Formatting Menu or pinch to zoom?
Radar WebKit Bug Importer
<rdar://problem/70917038>
Akash D Souza
I'm referring to the zoom buttons in the Page Formatting Menu
Akash D Souza
Here are some test files
viewport meta width is set to device-width - This works
https://akashdsouza.github.io/test-meta-viewport/zoom-issue-device-width.html
viewport meta width is not set - This works
https://akashdsouza.github.io/test-meta-viewport/zoom-issue.html
viewport meta width is set to 1024 - This does not work
https://akashdsouza.github.io/test-meta-viewport/zoom-issue-meta-1024.html
viewport meta width is set to 980 - This does not work
https://akashdsouza.github.io/test-meta-viewport/zoom-issue-meta-980.html
Smoley
Thanks Akash. I'm able to reproduce this on iOS 13.6.1 as well as the current iOS 14.2 beta with those examples.
Akash D Souza
Thanks for the quick update. Can you confirm whether the inconsistency is due to some misconfiguration/misunderstanding on my end with the viewport meta or if it's something related to how Safari handles viewport meta and page zoom?
Tim Horton
(In reply to Akash D Souza from comment #6)
> Thanks for the quick update. Can you confirm whether the inconsistency is
> due to some misconfiguration/misunderstanding on my end with the viewport
> meta or if it's something related to how Safari handles viewport meta and
> page zoom?
It's the latter.
Akash D Souza
Thanks again for the reply. Is this something that'll be fixed in the next or future versions or should we consider a different approach?
Akash D Souza
(In reply to Tim Horton from comment #7)
> (In reply to Akash D Souza from comment #6)
> > Thanks for the quick update. Can you confirm whether the inconsistency is
> > due to some misconfiguration/misunderstanding on my end with the viewport
> > meta or if it's something related to how Safari handles viewport meta and
> > page zoom?
>
> It's the latter.
Really sorry about the regular ping, but, can you please confirm if this will be fixed in an upcoming update or not?
Tim Horton
Apple doesn’t comment on the timing of bug fixes/unreleased software.
That said, this bug being open is a good indicator that it doesn’t currently have a fix, so I’d recommend finding a workaround if possible.