Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Better anti-aliasing on iPad when using position: fixed, why?

I noticed that when using position: fixed on an element, the text on the iPad (iOS 5.0.1) is being rendered better than without position: fixed. This is especially the case for white text on darker background.

My question is how to make use of this improved anti-aliasing without using workarounds such as position: fixed.

Below you can find an example picture and the corresponding code.

http://jsfiddle.net/t4kTm/

like image 980
aydio Avatar asked Oct 09 '22 20:10

aydio


2 Answers

I don't know why that is, but I do know how to control anti aliasing in webkit browsers:

-webkit-font-smoothing: none; /* Obvious */
-webkit-font-smoothing: subpixel-antialiased; /* This is what quite a few browers already do*/
-webkit-font-smoothing: antialiased; /* Even more than the one above */

Will this help?

like image 53
ACarter Avatar answered Oct 12 '22 10:10

ACarter


After updating to iOS 5 I wasn't able to reproduce this anymore - weird.

like image 34
aydio Avatar answered Oct 12 '22 12:10

aydio