Skip to content

Commit

Permalink
removed error in IE7
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Feb 6, 2012
1 parent 139e537 commit 619b9d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion feature-detects/css-remunit.js
Expand Up @@ -11,7 +11,9 @@
Modernizr.addTest('cssremunit', function(){

var div = document.createElement('div');
div.style.fontSize = '3rem';
try {
div.style.fontSize = '3rem';
} catch(er){}
return /rem/.test(div.style.fontSize)

});

0 comments on commit 619b9d6

Please sign in to comment.