Permalink
Browse files

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

… is greater than 7. Fixes issue #414
  • Loading branch information...
ryanseddon committed Nov 24, 2011
1 parent 2746f43 commit c209167c8653798d60fa220eaef53347f061173c
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 feature-detects/css-boxsizing.js
View
@@ -1 +1,2 @@
modernizr.min.js
+.DS_Store
@@ -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);
});

0 comments on commit c209167

Please sign in to comment.