Browse files

Merge pull request #615 from jreading/master

Add Test for css filters #614
  • Loading branch information...
2 parents 34df7a3 + 176fd05 commit 002726a45ab7286dc77c02e58555533e66000d66 @paulirish paulirish committed Jul 19, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 feature-detects/css-filters.js
View
7 feature-detects/css-filters.js
@@ -0,0 +1,7 @@
+// https://github.com/Modernizr/Modernizr/issues/615
+// documentMode is needed for false positives in oldIE, please see issue above
+Modernizr.addTest('cssfilters', function() {
+ el = document.createElement('div');
+ el.style.cssText = Modernizr._prefixes.join('filter' + ':blur(2px); ');
+ return !!el.style.length && ((document.documentMode === undefined || document.documentMode > 9));
+});

0 comments on commit 002726a

Please sign in to comment.