Debian Codegraph @

test_non_regression/svg/render-elems-03-t.svg

raw
1 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
2 <!ENTITY shape "<path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/>">
3 ]>
4 <svg version="1.1" baseProfile="tiny" id="svg-root"
5 width="100%" height="100%" viewBox="0 0 480 360"
6 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
7 <!--======================================================================-->
8 <!--= SVG 1.1 2nd Edition Test Case =-->
9 <!--======================================================================-->
10 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
11 <!--= Institute of Technology, European Research Consortium for =-->
12 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
13 <!--= All Rights Reserved. =-->
14 <!--= See http://www.w3.org/Consortium/Legal/. =-->
15 <!--======================================================================-->
16 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
17 template-version="1.4" reviewer="SVGWG" author="Vincent Hardy" status="accepted"
18 version="$Revision: 1.7 $" testname="$RCSfile: render-elems-03-t.svg,v $">
19 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/render.html#Elements">
20 <p>
21 Verifies that shapes can be filled, stroked and the order of filling and stroking.
22 </p>
23 </d:testDescription>
24 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 Run the test. No interaction required.
27 </p>
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 There is one pair of octagons. These are filled plus stroked.
32 </p>
33 </d:passCriteria>
34 </d:SVGTestCase>
35 <title id="test-title">$RCSfile: render-elems-03-t.svg,v $</title>
36 <defs>
37 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
38 <font-face-src>
39 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
40 </font-face-src>
41 </font-face>
42 </defs>
43 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
44 <!-- ====================================================================== -->
45 <!-- Now, fill and stroke. The fill should happen first -->
46 <!-- ====================================================================== -->
47 <g transform="translate(30, 80)">
48 <g fill="yellow" stroke="green" stroke-width="8" >&shape;</g>
49 <g stroke="black" fill="blue" stroke-width="8" transform="translate(200, 0)">&shape;</g>
50 <text x="70" y="-30" font-size="28">Shape fill and stroke</text>
51 </g>
52 </g>
53 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
54 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
55 </g>
56 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
57 <!-- comment out this watermark once the test is approved -->
58 <!--<g id="draft-watermark">
59 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
60 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
61 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
62 </g>-->
63 </svg>