Making Chrome Render Text Smaller Than 12px

Chrome

In Chrome's Chinese build, any CSS font size below 12px is ignored and the text renders at 12px. The intent behind that is probably sound — Chinese characters get hard to read below 12px.

But that same Chrome browses English sites too, and Chinese pages often need small English type. Some typographic treatments simply don't look right unless the text is small, and it wrecks the balance of the whole layout.

The fix: add a private property to the html selector.

html{-webkit-text-size-adjust: none;}

As the name suggests, it turns off WebKit's automatic text scaling.

Leave a Comment

Comments No Comments

Table of Contents