-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move svgclippaths test to feature-detects/svgclippaths.js
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
// This test is only for clip paths in SVG proper, not clip paths on HTML content | ||
// demo: srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg | ||
|
||
// However read the comments to dig into applying SVG clippaths to HTML content here: | ||
// github.com/Modernizr/Modernizr/issues/213#issuecomment-1149491 | ||
Modernizr.addTest('svgclippaths', function() { | ||
return !!document.createElementNS && | ||
/SVGClipPath/.test(toString.call(document.createElementNS('http://www.w3.org/2000/svg', 'clipPath'))); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters