Disable incorrect iOS/Edge text size adjustments #1178
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To cater for non-responsive "desktop only" websites, iPhone OS launched with a feature to increase the text size automatically so it was more legible:
To prevent font size tampering, it can be turned off with:
It's also supported by:
In Edge, it appears to kick in for portrait tablet mode on smaller non-pro Microsoft Surfaces.
Since GOV.UK Frontend already takes care of typography, we should opt out of this as shown:
Before
19px text in
.govuk-list
has been "boosted" to 25px (auto sizing)After
19px text
.govuk-list
remains correctly at 19px (set to 100%)Also found in CSS resets (normalize.css, Bootstrap) and prevents the subtle "zoom in" when rotated.