3

I almost always browse the web with a much bigger font size than default. Makes it much easier to read.

But once in a while I notice that some websites don't allow enlarging the font, at least on Chrome. Like this website for example:

http://en.support.wordpress.com/domains/map-existing-domain/

I am curious, both (a) as to why Chrome allows sites to do that and (b) as to how that is done.

Can someone explain?

Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
  • I can change the font size for that site by zooming in FF and IE by holding `Ctrl` and scrolling the mousewheel. Is that not what you mean? – Widor Jan 21 '13 at 17:01
  • 1
    @widor you will notice that on that site that the main content doesn't change size when you do control ++ or -- – Egryan Jan 21 '13 at 17:09

2 Answers2

2

a) God knows, because browser vendors love to implement things that are bound to get abused?

b) -webkit-text-size-adjust is the culprit. See also on MDN and previous question

Community
  • 1
  • 1
Fusselwurm
  • 308
  • 2
  • 9
  • I hope someone creates a Chrome extension that overrides `-webkit-text-size-adjust` and has a button to dispatch ninjas to attack the person who decided to use them on the site. – Ram Rachum Jan 21 '13 at 17:19
  • 1
    Fortunately, it's relatively simple to use Stylish to override such sites. I'd be better if it didn't require the user to install an extension and create rules... but it's better than being stuck dealing with it. – joequincy Jan 21 '13 at 17:23
1

It's a WebKit bug.

-webkit-text-size-adjust should only have an effect on mobile browsers.

But if you set -webkit-text-size-adjust to none, it (mistakenly) affects desktop WebKit browsers (like Chromium/Chrome and Safari), too.

Here is the bug report: https://bugs.webkit.org/show_bug.cgi?id=56543

unor
  • 92,415
  • 26
  • 211
  • 360