Bug 218379 - Page Zoom in Safari on iOS is not working when viewport meta is set to explicit width
Summary: Page Zoom in Safari on iOS is not working when viewport meta is set to explic...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 13
Hardware: iPhone / iPad iOS 13
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-30 03:16 PDT by Akash D Souza
Modified: 2020-11-26 23:26 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Akash D Souza 2020-10-30 03:16:25 PDT
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.
Comment 1 Smoley 2020-10-31 10:05:00 PDT
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?
Comment 2 Radar WebKit Bug Importer 2020-10-31 10:05:14 PDT
<rdar://problem/70917038>
Comment 3 Akash D Souza 2020-11-01 21:48:27 PST
I'm referring to the zoom buttons in the Page Formatting Menu
Comment 4 Akash D Souza 2020-11-02 00:32:14 PST
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
Comment 5 Smoley 2020-11-02 10:59:16 PST
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.
Comment 6 Akash D Souza 2020-11-04 11:19:19 PST
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?
Comment 7 Tim Horton 2020-11-04 11:42:14 PST
(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.
Comment 8 Akash D Souza 2020-11-09 13:11:05 PST
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?
Comment 9 Akash D Souza 2020-11-26 22:04:26 PST
(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?
Comment 10 Tim Horton 2020-11-26 23:26:01 PST
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.