Skip to content

Instantly share code, notes, and snippets.

@carlcalderon
Created March 12, 2014 14:20
Show Gist options
  • Save carlcalderon/9507912 to your computer and use it in GitHub Desktop.
Save carlcalderon/9507912 to your computer and use it in GitHub Desktop.
Normalized font-rendering in common browsers
/*
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