blob: 70b5b12031803b9f0ce11671873cc7379678bed9 [file] [log] [blame]
<?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-flat.dtd">
<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">
<!--======================================================================-->
<!--= 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/. =-->
<!--======================================================================-->
<!-- NOTE: CVS will automatically update the -->
<!-- "$RCSfile: struct-use-09-b.svg,v $" and "$Revision: 1.1 $" -->
<!-- fields in the file. -->
<!-- There is no need to update this information. -->
<!-- =====================================================================-->
<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 $">
<OperatorScript>
<Paragraph>
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.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">$RCSfile: struct-use-09-b.svg,v $</title>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<!-- put all of the actual test here -->
<defs>
<symbol id="rect1" overflow="visible">
<rect x="-50" y="-50" width="100" height="100" fill="none" stroke="red" />
</symbol>
<symbol id="rect2" overflow="visible">
<use xlink:href="#rect1" />
<rect x="-52.5" y="-52.5" width="105" height="105" fill="none" stroke="red" />
</symbol>
<symbol id="rect3" overflow="visible">
<use xlink:href="#rect2" />
<rect x="-55" y="-55" width="110" height="110" fill="none" stroke="red" />
</symbol>
<symbol id="rect4" overflow="visible">
<use xlink:href="#rect3" />
<rect x="-57.5" y="-57.5" width="115" height="115" fill="none" stroke="red" />
</symbol>
<symbol id="rects" overflow="visible">
<use xlink:href="#rect4" />
<rect x="-60" y="-60" width="120" height="120" fill="none" stroke="red" />
</symbol>
</defs>
<use x="240" y="180" xlink:href="#rects" />
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.1 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
<g id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="Helvetica, 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>