Skip to content

Commit

Permalink
IE7 in compat mode false positives on boxsizing, check compat version…
Browse files Browse the repository at this point in the history
… is greater than 7. Fixes issue #414
  • Loading branch information
ryanseddon committed Nov 24, 2011
1 parent 2746f43 commit c209167
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
modernizr.min.js
.DS_Store
2 changes: 1 addition & 1 deletion feature-detects/css-boxsizing.js
Expand Up @@ -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.