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-flat.dtd">
3<svg version="1.1" baseProfile="basic" 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">
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 <!-- NOTE: CVS will automatically update the -->
11 <!-- "$RCSfile: struct-use-09-b.svg,v $" and "$Revision: 1.1 $" -->
12 <!-- fields in the file. -->
13 <!-- There is no need to update this information. -->
14 <!-- =====================================================================-->
15 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="[reviewer]" owner="AN" desc="Tests the use element in symbol definition" status="created" version="$Revision: 1.1 $" testname="$RCSfile: struct-use-09-b.svg,v $">
16 <OperatorScript>
17 <Paragraph>
18 This tests the use element inside a symbol definition. For the test to pass, 5 rectangles with a red stroke, nested in each other, must be rendered.
19 </Paragraph>
20 </OperatorScript>
21 </SVGTestCase>
22 <title id="test-title">$RCSfile: struct-use-09-b.svg,v $</title>
23 <!--======================================================================-->
24 <!--Content of Test Case follows... =====================-->
25 <!--======================================================================-->
26 <g id="test-body-content">
27 <!-- put all of the actual test here -->
28 <defs>
29 <symbol id="rect1" overflow="visible">
30 <rect x="-50" y="-50" width="100" height="100" fill="none" stroke="red" />
31 </symbol>
32 <symbol id="rect2" overflow="visible">
33 <use xlink:href="#rect1" />
34 <rect x="-52.5" y="-52.5" width="105" height="105" fill="none" stroke="red" />
35 </symbol>
36 <symbol id="rect3" overflow="visible">
37 <use xlink:href="#rect2" />
38 <rect x="-55" y="-55" width="110" height="110" fill="none" stroke="red" />
39 </symbol>
40 <symbol id="rect4" overflow="visible">
41 <use xlink:href="#rect3" />
42 <rect x="-57.5" y="-57.5" width="115" height="115" fill="none" stroke="red" />
43 </symbol>
44 <symbol id="rects" overflow="visible">
45 <use xlink:href="#rect4" />
46 <rect x="-60" y="-60" width="120" height="120" fill="none" stroke="red" />
47 </symbol>
48 </defs>
49 <use x="240" y="180" xlink:href="#rects" />
50 </g>
51 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.1 $</text>
52 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
53 <g id="draft-watermark">
54 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
55 <text font-family="'Arial Black', Arial, sans-serif" font-weight="bold" font-size="20" x="240"
56 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
57 </g>
58</svg>