Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4097048
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:07:25+00:00 2026-05-20T20:07:25+00:00

Mobile Safari resizes some of the text by default, including <h1> and <h2> elements.

  • 0

Mobile Safari resizes some of the text by default, including <h1> and <h2> elements. I searched SO to see how I could prevent that and found questions such as these:

Font size issue with iPhone

Preventing iPhone scaling when rotated

font size change after orientation screen change to horizontal

Notice that the answer to all of those is the CSS property:

-webkit-text-size-adjust:none;

This works great for maintaining relative text size between header and paragraph elements on mobile Safari. However, I stumbled across a blog post just now titled Beware of -webkit-text-size-adjust:none:

What that does is prevent WebKit-based browsers from resizing text. Not even full page zoom resizes the text. Now, how can preventing your users from resizing text be a good idea?

According to Apple’s Safari CSS Reference (JavaScript required), -webkit-text-size-adjust "Specifies a size adjustment for displaying text content in Safari on iOS".

When given a value of “none”, the documentation specifies that "The text size is not adjusted".

Now, I took the property description to mean that the relative text size will not be automatically adjusted, not that the text size can’t be adjusted by the user, but the author says that his testing shows that text indeed cannot be adjusted in WebKit-based browsers when a value of ‘none’ is specified.

(I am currently in a position where I am unable to verify this at all, but I am going to assume he and others who make the claim are correct.)

So my question is this: how can one gain control over the relative text size between headers and paragraphs in mobile Safari without sacrificing accessibility?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:07:25+00:00Added an answer on May 20, 2026 at 8:07 pm

    The key issue here, as I understand it, is when this rule is applied on its own – because when the value is ‘none’ it applies to any webkit browser, whether it’s desktop, phone-sized, or tablet. Desktop webkit browsers don’t apply any other value, as far as I can tell (-webkit-font-size-adjust:150%; does nothing).

    When ‘none’ is applied to Mobile Safari on iOS, or any mobile Webkit browser (Android, etc), you get what feels like the ‘right’ effect: the browser doesn’t try to adjust the font-size of some of your elements, and you (the designer) remain in control of their sizes relative to each other. You can still pinch/zoom and double-tap zoom to zoom in/out of the viewport. Mobile browsers do viewport scaling, not text-scaling.

    However, when this rule applies to desktop webkit (Safari, Chrome), it feels wrong, because desktop webkit does do text-scaling, and this rule prevents that from happening.

    So – the solution is to target only mobile webkit for this rule. CSS media queries are the logical answer for this, but managing to target all the iOS devices is a bit clunky and imprecise:

    @media screen and (max-device-width: 480px), 
           screen and (-webkit-min-device-pixel-ratio: 2),
           screen and (device-width: 768px) {
      body {
        -webkit-text-size-adjust:none;
      }
    }
    

    This should get you all the iPhones up to the 3GS (1st rule), iPhone 4 (second rule), and iPad (3rd rule). The third rule should theoretically match desktop Safari too when the viewport is exactly 768px wide – but doesn’t seem to in practice.

    To be honest, I’m not sure it wouldn’t be better to use javascript to detect mobile Safari and add a class to the body of the document to apply the rule. That way, you won’t need to retro-fit new rules when devices with new displays come out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm collecting latitude and longitude from Mobile Safari with some JavaScript code. After collecting
I'm trying to add similar functionality to mobile safari. That is, when a user
I've often been told that CSS 3D transforms are hardware accelerated in Mobile Safari
If a user visits my websites example, from Safari Mobile how could I place
For some reason http://shirazraqs.com is causing mobile Safari to crash. I've never seen anything
I would like to duplicate the view switching functionality found in mobile safari's tab
By default, it seems Mobile Safari adds the top inner shadow to all input
Mobile Safari on the iPhone allows you to specify different keyboard types for text
I cannot figure out why Safari/Mobile Safari is ignoring a line of code that
Mobile Safari on iPad is supposed to be HTML5-compliant, but it seems that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.