Debian Codegraph @

test_non_regression/svg/paths-data-09-t.svg

raw
1 <svg version="1.1" baseProfile="tiny" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="CN" author="SH" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: paths-data-09-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/paths.html#PathData">
17 <p>
18 Verify the basic capability to handle the 'path' element, and its data attribute (d)
19 in combination with the straight-line path commands.
20 Two pairs of concentric equilateral triangles are drawn using
21 m and z. No l commands are used in this test as they are implied after
22 an m or z command. The shapes are identical, with one stroked and
23 one filled. The fill-mode default of "even-odd" means that
24 the inner triangle is hollow.
25 </p>
26 </d:testDescription>
27 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
28 <p>
29 Run the test. No interaction required.
30 </p>
31 </d:operatorScript>
32 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
33 <p>
34 The rendered picture should match the reference image exactly
35 </p>
36 </d:passCriteria>
37 </d:SVGTestCase>
38 <title id="test-title">$RCSfile: paths-data-09-t.svg,v $</title>
39 <defs>
40 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
41 <font-face-src>
42 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
43 </font-face-src>
44 </font-face>
45 </defs>
46 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
47 <!-- ====================================================================== -->
48 <!-- Second Group of Triangles using m & z commands ===================== -->
49 <!-- ====================================================================== -->
50 <text font-size="24" x="75" y="34">Lines drawn with commands:</text>
51 <text font-size="24" x="180" y="64">m and z</text>
52 <g transform="scale(1.8) translate(0, -150)">
53 <path id="Triangle_stroke_mz" fill="none" stroke="#000000" d=" m 62.00000 190.00000 51.96152 90.00000 -103.92304 0.00000 51.96152 -90.00000 z m 0.00000 15.00000 38.97114 67.50000 -77.91228 0.00000 38.97114 -67.50000 z "/>
54 <rect x="60.00000" y="188.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
55 <rect x="111.96152" y="278.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
56 <rect x="8.03848" y="278.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
57 <rect x="60.00000" y="203.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
58 <rect x="98.97114" y="270.50000" width="4" height="4" fill="#40DD20" stroke="none"/>
59 <rect x="21.02886" y="270.50000" width="4" height="4" fill="#40DD20" stroke="none"/>
60 <path id="Triangle_fill_mz" fill="#006000" stroke="none" fill-rule="evenodd" d=" m 177.00000 190.00000 51.96152 90.00000 -103.92304 0.00000 51.96152 -90.00000 z m 0.00000 15.00000 38.97114 67.50000 -77.91228 0.00000 38.97114 -67.50000 z "/>
61 <rect x="175.00000" y="188.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
62 <rect x="226.96152" y="278.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
63 <rect x="123.03848" y="278.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
64 <rect x="175.00000" y="203.00000" width="4" height="4" fill="#40DD20" stroke="none"/>
65 <rect x="213.97114" y="270.50000" width="4" height="4" fill="#40DD20" stroke="none"/>
66 <rect x="136.02886" y="270.50000" width="4" height="4" fill="#40DD20" stroke="none"/>
67 </g>
68 </g>
69 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
70 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
71 </g>
72 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
73 <!-- comment out this watermark once the test is approved -->
74 <!--<g id="draft-watermark">
75 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
76 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
77 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
78 </g>-->
79 </svg>