You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
478 B
13 lines
478 B
// 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;
|
|
});
|
|
|