0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
|
|
3 |
|
|
4 |
<!--======================================================================-->
|
|
5 |
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
|
|
6 |
<!--= Institute of Technology, Institut National de Recherche en =-->
|
|
7 |
<!--= Informatique et en Automatique, Keio University). All Rights =-->
|
|
8 |
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
|
|
9 |
<!--======================================================================-->
|
|
10 |
<!-- ===================================================================== -->
|
|
11 |
<!-- -->
|
|
12 |
<!-- structure-basicG-BE-03.svg -->
|
|
13 |
<!-- renamed for 1.1 suite to struct-group-01-t.svg -->
|
|
14 |
<!-- -->
|
|
15 |
<!-- -->
|
|
16 |
<!-- Author : Tim Thompson 3/16/00 -->
|
|
17 |
<!-- Revised for 1.1 : Phil Armstrong Feb/12/2002 -->
|
|
18 |
<!-- -->
|
|
19 |
<!-- History: -->
|
|
20 |
<!-- 20-mar-2000, TGT all testing of nested SVG elements. -->
|
|
21 |
<!-- 21-mar-2000, LH=", comment DOCTYPE for now" fix 'title'; serial#2. -->
|
|
22 |
<!-- 15-may-2000, TT=", added color balck to rectangle" serial#3 -->
|
|
23 |
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
|
|
24 |
<!-- 15-Nov-2000, LH: add missing test-body-content group. -->
|
|
25 |
<!-- -->
|
|
26 |
<!-- ===================================================================== -->
|
|
27 |
<!--======================================================================-->
|
|
28 |
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
|
|
29 |
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
|
|
30 |
<!--======================================================================-->
|
|
31 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" viewBox="0 0 480 360" width="100%" height="100%" version="1.1" baseProfile="tiny">
|
|
32 |
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
|
|
33 |
<OperatorScript version="$Revision: 1.4 $" testname="struct-group-01-t.svg">
|
|
34 |
<Paragraph>
|
|
35 |
The test checks to see that graphics elements (g) can be nested and that the like attributes can be passed to the children. All the g elements for this test are in the g element whose id=allGs. The two red rectangles and the yellow are in the g labeled rects. The reds inherit a fill color the green rect has a fill specified and it should not be overwritten. The two yellow rectangles should inherit the fill color and the transform attribute, they should be yellow and rotated at -20 degrees. These two rectangles are in g "yellowNrotate", that g is nested inside g "gratuitiousG". The black rectangle in the upper right, has no attributes inherited from its parent. The focus is nesting of g elements and passing on of attributes.
|
|
36 |
</Paragraph>
|
|
37 |
<Paragraph>
|
|
38 |
The rendered picture should match the reference image, except for possible
|
|
39 |
variations in the labelling text (per CSS2 rules).
|
|
40 |
</Paragraph>
|
|
41 |
<Paragraph>
|
|
42 |
The test uses the 'rect' element, as well as basic fill (solid primary colors),
|
|
43 |
stroke (black 1-pixel lines), font-family (Arial) and font-size properties.
|
|
44 |
</Paragraph>
|
|
45 |
</OperatorScript>
|
|
46 |
</SVGTestCase>
|
|
47 |
<title id="test-title">struct-group-01-t</title>
|
|
48 |
<desc id="test-desc">Test that the g element functions correctly as a container.</desc>
|
|
49 |
<!--======================================================================-->
|
|
50 |
<!--Content of Test Case follows... =====================-->
|
|
51 |
<!--======================================================================-->
|
|
52 |
<g id="test-body-content">
|
|
53 |
<g id="rects" fill="red" >
|
|
54 |
<rect x="0" y="0" width="240" height="180"/>
|
|
55 |
<rect x="60" y="45" width="120" height="90" fill="green" />
|
|
56 |
<rect x="240" y="180" width="240" height="180"/>
|
|
57 |
</g>
|
|
58 |
<g id="singleG">
|
|
59 |
<rect x="240" y="0" width="240" height="180" fill="black" />
|
|
60 |
</g>
|
|
61 |
<g id="gratuitiousG">
|
|
62 |
<g id="yellowNrotate" fill="yellow" transform="rotate(-20)">
|
|
63 |
<rect x="0" y="224" width="40" height="40"/>
|
|
64 |
<rect x="0" y="280" width="40" height="40"/>
|
|
65 |
</g>
|
|
66 |
</g>
|
|
67 |
</g>
|
|
68 |
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.4 $</text>
|
|
69 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
|
70 |
</svg>
|
|
71 |
|