Skip to content

Commit

Permalink
You can now use font-size: xx-small | x-small | small | medium | larg…
Browse files Browse the repository at this point in the history
…e | x-large | xx-large in Internet Explorer as well.
  • Loading branch information
sorccu committed Jul 14, 2009
1 parent 18e9b80 commit 9b954d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/cufon.js
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ Cufon.registerEngine('vml', (function() {
'</style>').replace(/;/g, '!important;'));

function getFontSizeInPixels(el, value) {
return getSizeInPixels(el, /(?:em|ex|%)$/i.test(value) ? '1em' : value);
return getSizeInPixels(el, /(?:em|ex|%)$|^[a-z-]+$/i.test(value) ? '1em' : value);
}

// Original by Dead Edwards.
Expand Down

0 comments on commit 9b954d0

Please sign in to comment.