Skip to content

Commit

Permalink
Merge pull request Modernizr#615 from jreading/master
Browse files Browse the repository at this point in the history
Add Test for css filters Modernizr#614
  • Loading branch information
paulirish committed Jul 19, 2012
2 parents abf53cc + 64128c0 commit 3a844a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions feature-detects/css-filters.js
Original file line number Diff line number Diff line change
@@ -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 3a844a1

Please sign in to comment.