Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

IE7 in compat mode false positives on boxsizing, check compat version…

… is greater than 7. Fixes issue #414
  • Loading branch information...
commit c209167c8653798d60fa220eaef53347f061173c 1 parent 2746f43
@ryanseddon ryanseddon authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  .gitignore
  2. +1 −1  feature-detects/css-boxsizing.js
View
1  .gitignore
@@ -1 +1,2 @@
modernizr.min.js
+.DS_Store
View
2  feature-detects/css-boxsizing.js
@@ -3,7 +3,7 @@
// github.com/Modernizr/Modernizr/issues/248
Modernizr.addTest("boxsizing",function(){
- return Modernizr.testAllProps("boxSizing");
+ return Modernizr.testAllProps("boxSizing") && (document.documentMode === undefined || document.documentMode > 7);
});
Please sign in to comment.
Something went wrong with that request. Please try again.