Created
March 12, 2014 14:20
-
-
Save carlcalderon/9507912 to your computer and use it in GitHub Desktop.
Normalized font-rendering in common browsers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
There are duplicate properties that seems to behave differently pending on browser version (see -moz-font-smoothing). | |
This is the most consistent I've found so far between vendors. | |
Please fork and improve! | |
*/ | |
body { | |
-webkit-text-rendering: optimizeLegibility; | |
-moz-text-rendering: optimizeLegibility; | |
-ms-text-rendering: optimizeLegibility; | |
-o-text-rendering: optimizeLegibility; | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
-moz-font-smoothing: antialiased; | |
-ms-font-smoothing: antialiased; | |
-o-font-smoothing: antialiased; | |
font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
-moz-font-smoothing: grayscale; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment