font-smoothing not applied to buttons

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2012-11-25T23:01:03Z Indexed on 2012/11/25 23:03 UTC
Read the original article Hit count: 157

Filed under:
|
|
|
|

I have used this snippet to prevent webkit from changing antialiasing when using CSS transforms:

html{ -webkit-font-smoothing: antialiased; }

This works fine for most cases, however I noticed some weirdness in chrome when playing around with Bootstrap using this HTML:

<button class="btn btn-inverse">John Doe</button>
<a class="btn btn-inverse">John Doe</a>?

This is how it looks in OSX/Chrome:

enter image description here

Fiddle: http://jsfiddle.net/hY2J7/. In fact, it seems that it is not applied to buttons at all. Is there a safer technique to trigger the same antialiasing in webkit for all elements?

© Stack Overflow or respective owner

Related posts about css

Related posts about button