Skip to content

Instantly share code, notes, and snippets.

@searls
Created July 28, 2018 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save searls/769f4dca245c394131b967128394e273 to your computer and use it in GitHub Desktop.
Save searls/769f4dca245c394131b967128394e273 to your computer and use it in GitHub Desktop.
Reproduces the bug demoed at https://youtu.be/fjqv8_gBs-0
<head>
<style>
body { border: 4px solid red; }
input {
margin-top: 40vh;
font-size: 64px;
}
</style>
</head>
<body>
<input placeholder="Tap this & then tap Done"/>
</body>
@searls
Copy link
Author

searls commented Jul 28, 2018

Submitted to Apple Bug reporter:


When dismissing the keyboard (either by tapping Done, Enter/Return, or tapping outside the keyboard area), Safari will zoom the page. This started in iOS 12 Developer Beta 3 and persisting through Beta 4

Steps to Reproduce:

1. Watch this video and try it out:
https://youtu.be/fjqv8_gBs-0

2. Load this HTML in Safari and attempt to reproduce: 
https://gist.github.com/searls/769f4dca245c394131b967128394e273

Expected Results:

iOS 11 and iOS 12 to behave the same.

Actual Results:

iOS 12 zooms the viewport

Version/Build:

16A5327f

Configuration:

N/A```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment