diff options
Diffstat (limited to 'tests/data/svg/clip-path.svg')
| -rw-r--r-- | tests/data/svg/clip-path.svg | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/data/svg/clip-path.svg b/tests/data/svg/clip-path.svg new file mode 100644 index 0000000..c3b6f7d --- /dev/null +++ b/tests/data/svg/clip-path.svg @@ -0,0 +1,24 @@ +<svg width="300" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <clipPath id="slice" clipPathUnits="userSpaceOnUse"> + <polyline points="25,25 50,50 25,75"/> + </clipPath> + <clipPath id="antislice" clipPathUnits="userSpaceOnUse"> + <polyline points="125,25 150,50 125,75 175,75 175,25"/> + </clipPath> + <clipPath id="antislice2" clipPathUnits="userSpaceOnUse"> + <polyline points="225,25 250,50 225,75 275,75 275,25"/> + </clipPath> + </defs> + <a xlink:href="http://example.com/1"> + <rect x="25" y="25" width="50" height="50" clip-path="url(#slice)"/> + </a> + <a xlink:href="http://example.com/2" clip-path="url(#antislice)"> + <rect x="130" y="30" width="40" height="40" stroke-width="6" stroke="lime"/> + </a> + <g clip-path="url(#antislice2)"> + <a xlink:href="http://example.com/3"> + <rect x="230" y="30" width="40" height="40"/> + </a> + </g> +</svg> |
