We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The text-size-adjust property allows control over the text inflation algorithm used on some mobile devices. As this property is non-standard, it must be prefixed: -moz-text-size-adjust, -webkit-text-size-adjust, and -ms-text-size-adjust.

/* Text is never inflated */
text-size-adjust: none;

/* Text may be inflated */
text-size-adjust: auto;

/* Text may be inflated in this exact proportion */
text-size-adjust: 80%;

/* Global values */
text-size-adjust: inherit;
text-size-adjust: initial;
text-size-adjust: unset;

Because many web pages have not been developed with mobile in mind, smartphone browsers differ from desktop browsers in the way they display web pages. Instead of laying out the web page at the width of the device screen, they lay it out using a viewport that is much wider than the device screen, usually 800 or 1000 pixels wide. To map the wide layout back to the original device size, the browser either shows only part of the whole render, or the viewport is scaled down to fit.

Because text that has been scaled down to fit a small screen is very small, many mobile browsers apply a text inflation algorithm to make the text larger and more readable. When an element containing text uses 100% of the screen's width, its text size is increased until it reached a readable size, but without modifying the layout.

The text-size-adjust property allows web authors to opt out or modify this behavior, as web pages designed to handle small screen widths do not need it.

  • This property is non-standard. You must prefix the property name for each engine you wish to use it on.
  • This property's behavior and syntax varies from browser to browser. See the browser compatibility section below for more information.
  • This property only works on smartphones and some tablets. Desktop browsers and some tablet browsers have no inflation algorithm.
  • If -webkit-text-size-adjust is explicitly set to none, older WebKit-based desktop and tablet browsers, like Chrome≤26 or Safari≤5, instead of ignoring the property, will prevent the user from zooming in or out on the web page.#
  • Not all engines that support this property allow the use of a percentage value (e.g. Webkit and Trident do, but Gecko doesn't). Check the browser compatibility section below for details.

Initial valueauto for smartphone browsers supporting inflation, none in other cases (and then not modifiable).
Applies toall elements
Percentagesyes, refer to the corresponding size of the text font
Computed valueas specified
Animation typediscrete
Canonical orderthe unique non-ambiguous order defined by the formal grammar


The text-size-adjust property is specified as none, auto, or a <percentage>.


Disables the browser's inflation algorithm. On old WebKit-based desktop browsers (Chrome≤26, Safari≤5), this will instead prevent the user from zooming the webpage in or out.
Enables the browser's inflation algorithm. This value is used to cancel a none value previously set with CSS.
Enables the browser's inflation algorithm, specifying a percentage value with which to increase the font size.

Formal syntax

none | auto | <percentage>


Specification Status Comment
CSS Mobile Text Size Adjustment Module Level 1
The definition of 'text-size-adjust' in that specification.
Editor's Draft Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support


No -webkit- 1

Yes -ms-

Yes -webkit-

No No42


No -webkit- 3

<percentage> ? Yes No No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5454

Yes -ms-

Yes -webkit-

Yes -moz-

49 -webkit-

44 -webkit- 2

42 Yes -webkit- ?
<percentage> ? ? Yes No No Yes ?

1. Instead of ignoring the -webkit-text-size-adjust property, a bug prevents desktop Chrome users from zooming in or out. The bug was fixed after Chrome 26.

2. From version 44: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). To change preferences in Firefox, visit about:config.

3. Instead of ignoring the -webkit-text-size-adjust property, a bug prevents desktop Safari users from zooming in or out. The bug was fixed after Safari 5.

See also

Document Tags and Contributors

 Last updated by: fscholz,