| ▲ | lapcat 6 hours ago | ||||||||||||||||||||||||||||||||||
I would add this:
All you need is initial-scale=1, not width=device-width, which is redundant."You do not need to set every viewport property. If only a subset of the properties are set, then Safari on iOS infers the other values. For example, if you set the scale to 1.0, Safari assumes the width is device-width in portrait and device-height in landscape orientation." https://developer.apple.com/library/archive/documentation/Ap... I've confirmed the behavior in testing. | |||||||||||||||||||||||||||||||||||
| ▲ | phil-pickering 5 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
The latest MDN recommendation is to use only width=device-width, with initial-scale being mostly redundant. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... | |||||||||||||||||||||||||||||||||||
| ▲ | netol 6 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
This may be Safari-specific? Google recommends setting both: https://developer.chrome.com/docs/lighthouse/best-practices/... | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||