1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
|
<svg version="1.1" baseProfile="tiny" id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--======================================================================-->
<!--= SVG 1.1 2nd Edition Test Case =-->
<!--======================================================================-->
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--= See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
template-version="1.4" reviewer="CN" author="VH" status="accepted"
version="$Revision: 1.5 $" testname="$RCSfile: struct-group-03-t.svg,v $">
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#Groups">
<p>
This test validates that properties are inherited (or not, depending on
their defintion), from a group to its children.
</p>
</d:testDescription>
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
<p>
[[
Describe how to use the here. The instructions should specify any
steps requied to run the test or any manual operation that need
to be performed to run the test.
]]
</p>
</d:operatorScript>
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
<p>
The two rows displayed in this test should be identical. In the top row,
each property is set to the value 'inherit'. In the bottom row, which is
the reference, each property is set to the value that should be inherited
in the top row.
</p>
</d:passCriteria>
</d:SVGTestCase>
<title id="test-title">$RCSfile: struct-group-03-t.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<g id="grid" transform="translate(70, 150) rotate(-90)" fill="none" stroke="black">
<defs>
<rect id="propertyCell" x="-5" y="-14" width="110" height="22"/>
<rect id="sampleCell" x="-5" y="-14" width="50" height="22"/>
</defs>
<use xlink:href="#propertyCell"/>
<use xlink:href="#propertyCell" y="22"/>
<use xlink:href="#propertyCell" y="44"/>
<use xlink:href="#propertyCell" y="66"/>
<use xlink:href="#propertyCell" y="88"/>
<use xlink:href="#propertyCell" y="110"/>
<use xlink:href="#propertyCell" y="132"/>
<use xlink:href="#propertyCell" y="154"/>
<use xlink:href="#propertyCell" y="176"/>
<use xlink:href="#propertyCell" y="198"/>
<use xlink:href="#propertyCell" y="220"/>
<use xlink:href="#propertyCell" y="242"/>
<use xlink:href="#propertyCell" y="264"/>
<use xlink:href="#propertyCell" y="286"/>
<use xlink:href="#propertyCell" y="308"/>
<use xlink:href="#propertyCell" y="330"/>
<use xlink:href="#propertyCell" y="352"/>
<g transform="translate(-50, 0)">
<use xlink:href="#sampleCell"/>
<use xlink:href="#sampleCell" y="22"/>
<use xlink:href="#sampleCell" y="44"/>
<use xlink:href="#sampleCell" y="66"/>
<use xlink:href="#sampleCell" y="88"/>
<use xlink:href="#sampleCell" y="110"/>
<use xlink:href="#sampleCell" y="132"/>
<use xlink:href="#sampleCell" y="154"/>
<use xlink:href="#sampleCell" y="176"/>
<use xlink:href="#sampleCell" y="198"/>
<use xlink:href="#sampleCell" y="220"/>
<use xlink:href="#sampleCell" y="242"/>
<use xlink:href="#sampleCell" y="264"/>
<use xlink:href="#sampleCell" y="286"/>
<use xlink:href="#sampleCell" y="308"/>
<use xlink:href="#sampleCell" y="330"/>
<use xlink:href="#sampleCell" y="352"/>
</g>
<g transform="translate(-100, 0)">
<use xlink:href="#sampleCell"/>
<use xlink:href="#sampleCell" y="22"/>
<use xlink:href="#sampleCell" y="44"/>
<use xlink:href="#sampleCell" y="66"/>
<use xlink:href="#sampleCell" y="88"/>
<use xlink:href="#sampleCell" y="110"/>
<use xlink:href="#sampleCell" y="132"/>
<use xlink:href="#sampleCell" y="154"/>
<use xlink:href="#sampleCell" y="176"/>
<use xlink:href="#sampleCell" y="198"/>
<use xlink:href="#sampleCell" y="220"/>
<use xlink:href="#sampleCell" y="242"/>
<use xlink:href="#sampleCell" y="264"/>
<use xlink:href="#sampleCell" y="286"/>
<use xlink:href="#sampleCell" y="308"/>
<use xlink:href="#sampleCell" y="330"/>
<use xlink:href="#sampleCell" y="352"/>
</g>
</g>
<g id="properties" transform="translate(70, 150) rotate(-90)">
<text>color</text>
<text y="22">display</text>
<text y="44">fill</text>
<text y="66">fill-rule</text>
<text y="88">stroke</text>
<text y="110">stroke-dasharray</text>
<text y="132">stroke-dashoffset</text>
<text y="154">stroke-linecap</text>
<text y="176">stroke-linejoin</text>
<text y="198">stroke-miterlimit</text>
<text y="220">stroke-width</text>
<text y="242">visibility</text>
<text y="264">font-family</text>
<text y="286">font-size</text>
<text y="308">font-style</text>
<text y="330">font-weight</text>
<text y="352">text-anchor</text>
</g>
<g id="inheritGroup" transform="translate(56, 155)">
<g color="#0F0">
<rect x="3" y="10" width="16" height="32" fill="currentColor"/>
</g>
<g display="none" transform="translate(22, 0)">
<rect x="3" y="10" width="16" height="32" display="inherit"/>
</g>
<g fill="#0F0" transform="translate(44, 0)">
<rect x="3" y="10" width="16" height="32" fill="inherit"/>
</g>
<g fill-rule="evenodd" transform="translate(66, 0)">
<polygon points="10.5,0 21,21 0,7 21,7 0,21" fill-rule="inherit" fill="#0F0" transform="translate(3, 15) scale(0.7)"/>
</g>
<g stroke="#0F0" transform="translate(88, 0)">
<rect x="3" y="10" width="16" height="32" stroke="inherit" fill="none"/>
</g>
<g stroke-dasharray="2,2,5,5" transform="translate(110, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dasharray="inherit" stroke-width="2"/>
</g>
<g stroke-dashoffset="4" transform="translate(132, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dashoffset="inherit" stroke-dasharray="2,2,5,5" stroke-width="2"/>
</g>
<g stroke-linecap="round" transform="translate(154, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-linecap="inherit" stroke-width="10"/>
</g>
<g stroke-linejoin="round" transform="translate(176, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-linejoin="inherit" stroke-width="5" fill="none"/>
</g>
<g stroke-miterlimit="1" transform="translate(198, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-miterlimit="inherit" stroke-width="5" fill="none"/>
</g>
<g stroke-width="5" transform="translate(220, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-width="inherit"/>
</g>
<g visibility="hidden" transform="translate(242, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" visibility="inherit"/>
</g>
<g font-family="serif" transform="translate(264, 0)">
<text x="11" y="30" font-size="20" text-anchor="middle" font-family="inherit">A</text>
</g>
<g font-size="10" transform="translate(286, 0)">
<text x="11" y="30" font-size="inherit" text-anchor="middle" font-family="serif">A</text>
</g>
<g font-style="italic" transform="translate(308, 0)">
<text x="11" y="30" font-style="inherit" text-anchor="middle" font-size="20" font-family="serif">A</text>
</g>
<g font-weight="bold" transform="translate(330, 0)">
<text x="11" y="30" font-weight="inherit" text-anchor="middle" font-family="serif" font-size="20">A</text>
</g>
<g text-anchor="middle" transform="translate(352, 0)">
<text x="11" y="30" text-anchor="inherit" font-family="serif" font-size="20">A</text>
</g>
</g>
<g id="referenceGroup" transform="translate(56, 205)">
<g>
<rect x="3" y="10" width="16" height="32" fill="#0F0"/>
</g>
<g transform="translate(22, 0)">
<rect x="3" y="10" width="16" height="32" display="none"/>
</g>
<g transform="translate(44, 0)">
<rect x="3" y="10" width="16" height="32" fill="#0F0"/>
</g>
<g transform="translate(66, 0)">
<polygon points="10.5,0 21,21 0,7 21,7 0,21" fill-rule="evenodd" fill="#0F0" transform="translate(3, 15) scale(0.7)"/>
</g>
<g transform="translate(88, 0)">
<rect x="3" y="10" width="16" height="32" stroke="#0F0" fill="none"/>
</g>
<g stroke-dasharray="2,2,5,5" transform="translate(110, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dasharray="inherit" stroke-width="2"/>
</g>
<g transform="translate(132, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dashoffset="4" stroke-dasharray="2,2,5,5" stroke-width="2"/>
</g>
<g transform="translate(154, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-linecap="round" stroke-width="10"/>
</g>
<g transform="translate(176, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-linejoin="round" stroke-width="5" fill="none"/>
</g>
<g transform="translate(198, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-miterlimit="1" stroke-width="5" fill="none"/>
</g>
<g transform="translate(220, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-width="5"/>
</g>
<g transform="translate(242, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" visibility="hidden"/>
</g>
<g transform="translate(264, 0)">
<text x="11" y="30" font-size="20" text-anchor="middle" font-family="serif">A</text>
</g>
<g transform="translate(286, 0)">
<text x="11" y="30" font-size="10" text-anchor="middle" font-family="serif">A</text>
</g>
<g transform="translate(308, 0)">
<text x="11" y="30" font-style="italic" text-anchor="middle" font-size="20" font-family="serif">A</text>
</g>
<g transform="translate(330, 0)">
<text x="11" y="30" font-weight="bold" text-anchor="middle" font-family="serif" font-size="20">A</text>
</g>
<g transform="translate(352, 0)">
<text x="11" y="30" text-anchor="middle" font-family="serif" font-size="20">A</text>
</g>
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
</g>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<!-- comment out this watermark once the test is approved -->
<!--<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>
|