mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 07:31:04 +00:00
23 lines
691 B
JavaScript
23 lines
691 B
JavaScript
/*!
|
|
{
|
|
"name": "SVG clip paths",
|
|
"property": "svgclippaths",
|
|
"tags": ["svg"],
|
|
"notes": [{
|
|
"name": "Demo",
|
|
"href": "http://srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for clip paths in SVG (only, not on HTML content).
|
|
|
|
See [this discussion](https://github.com/Modernizr/Modernizr/issues/213) regarding applying SVG clip paths to HTML content.
|
|
*/
|
|
define(['Modernizr', 'toStringFn'], function(Modernizr, toStringFn) {
|
|
Modernizr.addTest('svgclippaths', function() {
|
|
return !!document.createElementNS &&
|
|
/SVGClipPath/.test(toStringFn.call(document.createElementNS('http://www.w3.org/2000/svg', 'clipPath')));
|
|
});
|
|
});
|