blob: 7344572603aed0791ff56b27c5a3749f5d0192c4 [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.dtd"
[
<!ENTITY shape " <path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/>">
]>
<!--======================================================================-->
<!--= 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/. =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- -->
<!-- rendering-shape-BE-03.svg -->
<!-- renamed for 1.1 suite to render-elems-02-t.svg -->
<!-- -->
<!-- This test validates that shapes can be both filled and stroked. -->
<!-- -->
<!-- Author : Vincent Hardy, 02-Mar-2000 -->
<!-- Revised for 1.1 : Phil Armstrong Feb/11/2002 -->
<!-- -->
<!-- History: -->
<!-- 02-Mar-2000, VH: Created. Matches 20000302 SVG spec. -->
<!-- 11-Mar-2000, LH=" fixed names, focus, ids, framing rect" removed -->
<!-- ineffective "text-anchor="middle"" ser#3 -->
<!-- 10-Apr-2000, LH: fix framing rect (449->448); ser#4. -->
<!-- 02-Jun-2000, LH=" rmv extraneous closing lineto frm "shape"" ser#5. -->
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
<!-- 16-Aug-2000, LH: renaming, ser#6. -->
<!-- -->
<!-- ===================================================================== -->
<!--======================================================================-->
<!--= 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.7 $" testname="render-elems-02-t.svg">
<Paragraph>
Verifies that shapes can be stroked.
</Paragraph>
<Paragraph>
There is one pair of octagons. These are stroked.
</Paragraph>
<Paragraph>
The rendered image should match the reference image except for the text which may
show minor layout differences.
</Paragraph>
<Paragraph>
The test uses the 'rect' element, as well as basic fill (solid primary colors),
stroke (primary color 1-pixel and wide lines), font-family (Arial) and font-size properties -
the common prerequisites.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">render-elems-02-t</title>
<desc id="test-desc">This test validates that shapes can be both stroked.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content" >
<!-- ====================================================================== -->
<!-- Now, stroke shape with two different stroke width and color -->
<!-- ====================================================================== -->
<g transform="translate(30, 80)">
<g fill="none" stroke="red" stroke-width="3" ><path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/></g>
<g fill="none" stroke="black" stroke-width="9" transform="translate(200, 0)"><path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/></g>
<text x="110" y="-30" font-size="28">Shape stroke</text>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>