diff options
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/svg-filters.js')
-rw-r--r-- | source/bower_components/modernizr/feature-detects/svg-filters.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/svg-filters.js b/source/bower_components/modernizr/feature-detects/svg-filters.js new file mode 100644 index 0000000..d289b9d --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/svg-filters.js @@ -0,0 +1,13 @@ +// Detect support for svg filters - http://www.w3.org/TR/SVG11/filters.html. +// Should fail in Safari: http://stackoverflow.com/questions/9739955/feature-detecting-support-for-svg-filters. +// detect by erik dahlstrom + +Modernizr.addTest('svgfilters', function(){ + var result = false; + try { + result = typeof SVGFEColorMatrixElement !== undefined && + SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE == 2; + } + catch(e) {} + return result; +}); |