Debian Codegraph @

samples/tests/spec/masking/clipTransform.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ========================================================================= -->
24 <!-- Test description here -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31
32 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body"
33 width="450" height="500" viewBox="0 0 450 500">
34 <title>Clip Transform Test</title>
35
36 <text x="225" y="40" class="title">Clip Transform Test</text>
37
38 <defs>
39 <clipPath id="clip1">
40 <rect x="175" y="125" width="100" height="50" transform="rotate(45 225 150)" />
41 <rect x="200" y="100" width="50" height="100" transform="rotate(45 225 150)"/>
42 </clipPath>
43
44 <clipPath id="clip2" transform="rotate(45 225 350)">
45 <rect x="175" y="325" width="100" height="50" />
46 <rect x="200" y="300" width="50" height="100" />
47 </clipPath>
48
49 <linearGradient id="grad">
50 <stop style="stop-color:crimson" offset="0" />
51 <stop style="stop-color:orange" offset=".5" />
52 <stop style="stop-color:gold" offset="1" />
53 </linearGradient>
54
55 </defs>
56
57 <!-- ============================================================= -->
58 <!-- Test content -->
59 <!-- ============================================================= -->
60 <g id="testContent">
61
62 <rect x="125" y="80" width="200" height="140" style="fill:#eee" />
63 <rect x="125" y="80" width="200" height="140" style="fill:url(#grad); clip-path:url(#clip1)" />
64
65 <rect x="125" y="280" width="200" height="140" style="fill:#eee" />
66 <rect x="125" y="280" width="200" height="140" style="fill:url(#grad); clip-path:url(#clip2)" />
67
68 <text x="50%" y="240" style="text-anchor:middle">transform on &lt;clipPath></text>
69 <text x="50%" y="440" style="text-anchor:middle">transform on &lt;clipPath>'s children</text>
70
71 </g>
72
73 <!-- ============================================================= -->
74 <!-- Batik sample mark -->
75 <!-- ============================================================= -->
76 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
77
78 </svg>