| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN" |
| "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"> |
| |
| <!-- ========================================================================= --> |
| <!-- Copyright (C) The Apache Software Foundation. All rights reserved. --> |
| <!-- --> |
| <!-- This software is published under the terms of the Apache Software License --> |
| <!-- version 1.1, a copy of which has been included with this distribution in --> |
| <!-- the LICENSE file. --> |
| <!-- ========================================================================= --> |
| |
| <!-- ========================================================================= --> |
| <!-- Test description here --> |
| <!-- --> |
| <!-- @author tkormann@apache.org --> |
| <!-- @version $Id$ --> |
| <!-- ========================================================================= --> |
| |
| <?xml-stylesheet type="text/css" href="test.css" ?> |
| |
| <svg id="body" width="450" height="500" viewBox="0 0 450 500"> |
| <title>Clip Test</title> |
| |
| <!-- ============================================================= --> |
| <!-- Test content --> |
| <!-- ============================================================= --> |
| <g id="testContent"> |
| |
| <text x="225" y="40" class="title"> |
| Clip Test |
| </text> |
| |
| <defs> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : default (userSpaceOnUse) --> |
| <!-- ============================================== --> |
| <clipPath id="clip_1_1"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : objectBoundingBox --> |
| <!-- ============================================== --> |
| <clipPath id="clip_1_2" clipPathUnits="objectBoundingBox"> |
| <circle cx=".3" cy=".5" r=".3"/> |
| <circle cx=".7" cy=".5" r=".3"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : userSpaceOnUse --> |
| <!-- ============================================== --> |
| <clipPath id="clip_1_3" clipPathUnits="userSpaceOnUse"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| |
| <clipPath id="clip00" clipPathUnits="objectBoundingBox"> |
| <circle cx=".5" cy=".5" r=".16"/> |
| </clipPath> |
| |
| <clipPath id="clip0" clipPathUnits="objectBoundingBox"> |
| <circle cx=".5" cy=".5" r=".16" style="clip-path:url(#clip00)"/> |
| </clipPath> |
| |
| <clipPath id="clip" clipPathUnits="objectBoundingBox" style="clip-path:url(#clip0)"> |
| <circle cx=".5" cy=".5" r=".16"/> |
| </clipPath> |
| |
| <!-- ============================================== --> |
| <!-- clipPathUnits : default (userSpaceOnUse) --> |
| <!-- clip-path on the clipPath element --> |
| <!-- ============================================== --> |
| <clipPath id="clip_2_1" style="clip-path:url(#clip)"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : objectBoundingBox --> |
| <!-- clip-path on the clipPath element --> |
| <!-- ============================================== --> |
| <clipPath id="clip_2_2" clipPathUnits="objectBoundingBox" style="clip-path:url(#clip)"> |
| <circle cx=".3" cy=".5" r=".3"/> |
| <circle cx=".7" cy=".5" r=".3"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : userSpaceOnUse --> |
| <!-- clip-path on the clipPath element --> |
| <!-- ============================================== --> |
| <clipPath id="clip_2_3" clipPathUnits="userSpaceOnUse" style="clip-path:url(#clip)"> |
| <circle cx="36" cy="60" r="36"/> |
| <circle cx="84" cy="60" r="36"/> |
| </clipPath> |
| |
| <!-- ============================================== --> |
| <!-- clipPathUnits : default (userSpaceOnUse) --> |
| <!-- clip-path on the clipPath children elements --> |
| <!-- ============================================== --> |
| <clipPath id="clip_3_1"> |
| <circle cx="36" cy="60" r="36" style="clip-path:url(#clip)"/> |
| <circle cx="84" cy="60" r="36" style="clip-path:url(#clip)"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : objectBoundingBox --> |
| <!-- clip-path on the clipPath children elements --> |
| <!-- ============================================== --> |
| <clipPath id="clip_3_2" clipPathUnits="objectBoundingBox"> |
| <circle cx=".3" cy=".5" r=".3" style="clip-path:url(#clip)"/> |
| <circle cx=".7" cy=".5" r=".3" style="clip-path:url(#clip)"/> |
| </clipPath> |
| <!-- ============================================== --> |
| <!-- clipPathUnits : userSpaceOnUse --> |
| <!-- clip-path on the clipPath children elements --> |
| <!-- ============================================== --> |
| <clipPath id="clip_3_3" clipPathUnits="userSpaceOnUse"> |
| <circle cx="36" cy="60" r="36" style="clip-path:url(#clip)"/> |
| <circle cx="84" cy="60" r="36" style="clip-path:url(#clip)"/> |
| </clipPath> |
| |
| </defs> |
| |
| <!-- ============================================== --> |
| <!-- clip_1_* --> |
| <!-- ============================================== --> |
| <g transform="translate(0 40)" class="legend"> |
| <g id="c1" transform="translate(20 20)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_1_1)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_1_1</text> |
| </g> |
| </g> |
| |
| <g id="c2" transform="translate(20 160)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_1_2)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_1_2</text> |
| </g> |
| </g> |
| |
| <g id="c3" transform="translate(20 300)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_1_3)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_1_2</text> |
| </g> |
| </g> |
| |
| <!-- ============================================== --> |
| <!-- clip_2_* --> |
| <!-- ============================================== --> |
| |
| <g id="c4" transform="translate(160 20)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_2_1)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_2_1</text> |
| </g> |
| </g> |
| |
| <g id="c5" transform="translate(160 160)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_2_2)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_2_2</text> |
| </g> |
| </g> |
| |
| <g id="c6" transform="translate(160 300)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_2_3)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_2_3</text> |
| </g> |
| </g> |
| |
| <!-- ============================================== --> |
| <!-- clip_3_* --> |
| <!-- ============================================== --> |
| |
| <g id="c7" transform="translate(300 20)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_3_1)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_3_1</text> |
| </g> |
| </g> |
| |
| <g id="c8" transform="translate(300 160)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_3_2)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_3_2</text> |
| </g> |
| </g> |
| |
| <g id="c9" transform="translate(300 300)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/> |
| <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_3_3)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle">clip_3_2</text> |
| </g> |
| </g> |
| </g> |
| |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../batikLogo.svg#Batik_Tag_Box" /> |
| |
| </svg> |