72 lines
4.8 KiB
XML
72 lines
4.8 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
|
||
|
|
||
|
<!--======================================================================-->
|
||
|
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
|
||
|
<!--= Institute of Technology, Institut National de Recherche en =-->
|
||
|
<!--= Informatique et en Automatique, Keio University). All Rights =-->
|
||
|
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
|
||
|
<!--======================================================================-->
|
||
|
<!-- ===================================================================== -->
|
||
|
<!-- -->
|
||
|
<!-- structure-basicG-BE-03.svg -->
|
||
|
<!-- renamed for 1.1 suite to struct-group-01-t.svg -->
|
||
|
<!-- -->
|
||
|
<!-- -->
|
||
|
<!-- Author : Tim Thompson 3/16/00 -->
|
||
|
<!-- Revised for 1.1 : Phil Armstrong Feb/12/2002 -->
|
||
|
<!-- -->
|
||
|
<!-- History: -->
|
||
|
<!-- 20-mar-2000, TGT all testing of nested SVG elements. -->
|
||
|
<!-- 21-mar-2000, LH=", comment DOCTYPE for now" fix 'title'; serial#2. -->
|
||
|
<!-- 15-may-2000, TT=", added color balck to rectangle" serial#3 -->
|
||
|
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
|
||
|
<!-- 15-Nov-2000, LH: add missing test-body-content group. -->
|
||
|
<!-- -->
|
||
|
<!-- ===================================================================== -->
|
||
|
<!--======================================================================-->
|
||
|
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
|
||
|
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
|
||
|
<!--======================================================================-->
|
||
|
<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">
|
||
|
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
|
||
|
<OperatorScript version="$Revision: 1.4 $" testname="struct-group-01-t.svg">
|
||
|
<Paragraph>
|
||
|
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.
|
||
|
</Paragraph>
|
||
|
<Paragraph>
|
||
|
The rendered picture should match the reference image, except for possible
|
||
|
variations in the labelling text (per CSS2 rules).
|
||
|
</Paragraph>
|
||
|
<Paragraph>
|
||
|
The test uses the 'rect' element, as well as basic fill (solid primary colors),
|
||
|
stroke (black 1-pixel lines), font-family (Arial) and font-size properties.
|
||
|
</Paragraph>
|
||
|
</OperatorScript>
|
||
|
</SVGTestCase>
|
||
|
<title id="test-title">struct-group-01-t</title>
|
||
|
<desc id="test-desc">Test that the g element functions correctly as a container.</desc>
|
||
|
<!--======================================================================-->
|
||
|
<!--Content of Test Case follows... =====================-->
|
||
|
<!--======================================================================-->
|
||
|
<g id="test-body-content">
|
||
|
<g id="rects" fill="red" >
|
||
|
<rect x="0" y="0" width="240" height="180"/>
|
||
|
<rect x="60" y="45" width="120" height="90" fill="green" />
|
||
|
<rect x="240" y="180" width="240" height="180"/>
|
||
|
</g>
|
||
|
<g id="singleG">
|
||
|
<rect x="240" y="0" width="240" height="180" fill="black" />
|
||
|
</g>
|
||
|
<g id="gratuitiousG">
|
||
|
<g id="yellowNrotate" fill="yellow" transform="rotate(-20)">
|
||
|
<rect x="0" y="224" width="40" height="40"/>
|
||
|
<rect x="0" y="280" width="40" height="40"/>
|
||
|
</g>
|
||
|
</g>
|
||
|
</g>
|
||
|
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.4 $</text>
|
||
|
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
||
|
</svg>
|
||
|
|