Debian Codegraph @

samples/tests/spec/painting/visibility.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 Licensed to the Apache Software Foundation (ASF) under one or more
7 contributor license agreements. See the NOTICE file distributed with
8 this work for additional information regarding copyright ownership.
9 The ASF licenses this file to You under the Apache License, Version 2.0
10 (the "License"); you may not use this file except in compliance with
11 the License. You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 -->
21
22 <!-- ========================================================================= -->
23 <!-- Test 'visibility' property inheritance -->
24 <!-- -->
25 <!-- @author [email protected] -->
26 <!-- @version $Id$ -->
27 <!-- ========================================================================= -->
28
29 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
30
31
32 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500">
33 <title> Test 'visibility' property inheritance</title>
34 <!-- ============================================================= -->
35 <!-- Test content -->
36 <!-- ============================================================= -->
37 <g id="testContent">
38 <text x="225" y="50" class="title">
39 Test 'visibility' property inheritance
40 </text>
41 <g transform="translate(0 10)" style="font-size:12">
42
43 <g transform="translate(80 40)">
44 <g>
45 <rect x="0" y="45" width="40" height="50" style="fill:#eee"/>
46 <rect x="40" y="45" width="40" height="50" style="fill:#aaa"/>
47 <rect x="80" y="45" width="40" height="50" style="fill:#444"/>
48 <text x="60" y="120" style="text-anchor:middle">inherit | inherit | inherit</text>
49 <text x="60" y="136" style="text-anchor:middle">&lt;g> inherit</text>
50 </g>
51 <g transform="translate(160, 0)">
52 <rect x="0" y="45" width="40" height="50" style="fill:#eee"/>
53 <rect x="40" y="45" width="40" height="50" style="fill:#aaa"/>
54 <rect x="80" y="45" width="40" height="50" style="fill:#444"/>
55 <text x="60" y="120" style="text-anchor:middle">inherit | inherit | inherit</text>
56 <text x="60" y="136" style="text-anchor:middle">&lt;g> hidden</text>
57 </g>
58 <g transform="translate(0 10)">
59 <g style="visibility:inherit">
60 <rect x="0" y="45" width="40" height="50" style="visibility:inherit; fill:gold"/>
61 <rect x="40" y="45" width="40" height="50" style="visibility:inherit; fill:orange"/>
62 <rect x="80" y="45" width="40" height="50" style="visibility:inherit; fill:crimson"/>
63 </g>
64 <g style="visibility:hidden" transform="translate(160, 0)">
65 <rect x="0" y="45" width="40" height="50" style="visibility:inherit; fill:gold"/>
66 <rect x="40" y="45" width="40" height="50" style="visibility:inherit; fill:orange"/>
67 <rect x="80" y="45" width="40" height="50" style="visibility:inherit; fill:crimson"/>
68 </g>
69 </g>
70 </g>
71
72 <!-- ########################################################################### -->
73 <g transform="translate(80 160)">
74 <g>
75 <rect x="0" y="45" width="40" height="50" style="fill:#eee"/>
76 <rect x="40" y="45" width="40" height="50" style="fill:#aaa"/>
77 <rect x="80" y="45" width="40" height="50" style="fill:#444"/>
78 <text x="60" y="120" style="text-anchor:middle">inherit | hidden | visible</text>
79 <text x="60" y="136" style="text-anchor:middle">&lt;g> inherit</text>
80 </g>
81 <g transform="translate(160, 0)">
82 <rect x="0" y="45" width="40" height="50" style="fill:#eee"/>
83 <rect x="40" y="45" width="40" height="50" style="fill:#aaa"/>
84 <rect x="80" y="45" width="40" height="50" style="fill:#444"/>
85 <text x="60" y="120" style="text-anchor:middle">inherit | hidden | visible</text>
86 <text x="60" y="136" style="text-anchor:middle">&lt;g> visible</text>
87 </g>
88 <g transform="translate(0 10)">
89 <g style="visibility:inherit">
90 <rect x="0" y="45" width="40" height="50" style="visibility:inherit; fill:gold"/>
91 <rect x="40" y="45" width="40" height="50" style="visibility:hidden; fill:orange"/>
92 <rect x="80" y="45" width="40" height="50" style="visibility:visible; fill:crimson"/>
93 </g>
94 <g style="visibility:visible" transform="translate(160, 0)">
95 <rect x="0" y="45" width="40" height="50" style="visibility:inherit; fill:gold"/>
96 <rect x="40" y="45" width="40" height="50" style="visibility:hidden; fill:orange"/>
97 <rect x="80" y="45" width="40" height="50" style="visibility:visible; fill:crimson"/>
98 </g>
99 </g>
100 </g>
101
102 <g transform="translate(80 280)">
103 <g>
104 <rect x="0" y="45" width="40" height="50" style="fill:#eee"/>
105 <rect x="40" y="45" width="40" height="50" style="fill:#aaa"/>
106 <rect x="80" y="45" width="40" height="50" style="fill:#444"/>
107 <text x="60" y="120" style="text-anchor:middle">inherit | hidden | visible</text>
108 <text x="60" y="136" style="text-anchor:middle">&lt;g> collapse</text>
109 </g>
110 <g transform="translate(160, 0)">
111 <rect x="0" y="45" width="40" height="50" style="fill:#eee"/>
112 <rect x="40" y="45" width="40" height="50" style="fill:#aaa"/>
113 <rect x="80" y="45" width="40" height="50" style="fill:#444"/>
114 <text x="60" y="120" style="text-anchor:middle">inherit | hidden | visible</text>
115 <text x="60" y="136" style="text-anchor:middle">&lt;g> hidden</text>
116 </g>
117 <g transform="translate(0 10)">
118 <g style="visibility:collapse">
119 <rect x="0" y="45" width="40" height="50" style="visibility:inherit; fill:gold"/>
120 <rect x="40" y="45" width="40" height="50" style="visibility:hidden; fill:orange"/>
121 <rect x="80" y="45" width="40" height="50" style="visibility:visible; fill:crimson"/>
122 </g>
123 <g style="visibility:hidden" transform="translate(160, 0)">
124 <rect x="0" y="45" width="40" height="50" style="visibility:inherit; fill:gold"/>
125 <rect x="40" y="45" width="40" height="50" style="visibility:hidden; fill:orange"/>
126 <rect x="80" y="45" width="40" height="50" style="visibility:visible; fill:crimson"/>
127 </g>
128 </g>
129 </g>
130
131 </g>
132 </g>
133
134 <!-- ============================================================= -->
135 <!-- Batik sample mark -->
136 <!-- ============================================================= -->
137 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
138
139 </svg>