[webkit-dev] "-webkit-text-size-adjust: none" prevents accessibility options from working

Simon Fraser simon.fraser at apple.com
Fri May 27 09:33:12 PDT 2011


On May 27, 2011, at 9:02 AM, John Reck wrote:

> I have been investigating an issue where accessibility features on WebKit based browsers don't work on some sites.  Specifically, the "Minimum font size" setting and the "Text zoom" is being ignored on some sites.  It turns out that sites having this issue are using the CSS property "-webkit-text-size-adjust: none".  [http://techcrunch.com/ (mobile version) is a site that exhibits this behavior, or http://kllrnohj.com/test/textsize.html for a more extreme example.]  Searches for this CSS property indicated that is is mainly used by sites that want to prevent the text size from automatically being adjusted on iOS when the device is rotated.
> 
> Given the importance of supporting accessibility, we are investigating completely disabling this CSS property in our browser.  We have not seen any uses cases except for platforms that automatically adjust text size (and even on those platforms it seems like a bug that the site should be able to override the browsers accessibility settings).
> 
> Before opening a bug or submitting a patch for review, I would be interested in finding out if this issue has already been discussed, if there are any use cases we have missed, and any thoughts on approaches to resolve this issue.  The simplest solution is to completely ignore this property on platforms that don't automatically adjust text size, but we may have missed some other cases where this property could be useful.

This is related:
<https://bugs.webkit.org/show_bug.cgi?id=56543>

Sites most likely use -webkit-text-size-adjust:none for iOS, but it has a different behavior on desktop. This was not intended behavior.

Simon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110527/fd6eae20/attachment.html>


More information about the webkit-dev mailing list