Debian Codegraph @

test_non_regression/svg/paths-data-04-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="SVGWG" author="Lofton Henderson" status="accepted"
15 version="$Revision: 1.7 $" testname="$RCSfile: paths-data-04-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 respectively
21 M,L,Z and m,l,z. The shapes are identical, with one stroked and
22 one filled. The fill-mode default of "even-odd" means that
23 the inner triangle is hollow.
24 </p>
25 </d:testDescription>
26 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 Run the test. No interaction required.
29 </p>
30 </d:operatorScript>
31 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 The rendered picture should match the reference image exactly
34 </p>
35 </d:passCriteria>
36 </d:SVGTestCase>
37 <title id="test-title">$RCSfile: paths-data-04-t.svg,v $</title>
38 <defs>
39 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
40 <font-face-src>
41 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
42 </font-face-src>
43 </font-face>
44 </defs>
45 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
46 <!-- ====================================================================== -->
47 <!-- First Group of Triangles using M, L & Z commands ===================== -->
48 <!-- ====================================================================== -->
49 <g transform="scale(1.8)">
50 <!-- <text font-size="12" x="160" y="14">Lines drawn with commands:</text> -->
51 <text font-size="12" x="88" y="30">M, L, L, L, Z,</text>
52 <text font-size="12" x="98" y="46">subpath</text>
53 <text font-size="12" x="88" y="61">M, L, L, L, Z</text>
54 <path id="Triangle_stroke_MLZ" fill="none" stroke="#000000" d=" M 62.00000 56.00000 L 113.96152 146.00000 L 10.03848 146.00000 L 62.00000 56.00000 Z M 62.00000 71.00000 L 100.97114 138.50000 L 23.02886 138.50000 L 62.00000 71.00000 Z "/>
55 <rect x="60.00000" y="54.00000" width="4" height="4" fill="#00C000" stroke="none"/>
56 <rect x="111.96152" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/>
57 <rect x="8.03848" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/>
58 <rect x="60.00000" y="69.00000" width="4" height="4" fill="#00C000" stroke="none"/>
59 <rect x="98.97114" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/>
60 <rect x="21.02886" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/>
61 <text font-size="12" x="42" y="162">stroked</text>
62 <path id="Triangle_fill_MLZ" fill="#7FA" stroke="none" fill-rule="evenodd" d=" M 177.00000 56.00000 L 228.96152 146.00000 L 125.03848 146.00000 L 177.00000 56.00000 Z M 177.00000 71.00000 L 215.97114 138.50000 L 138.02886 138.50000 L 177.00000 71.00000 Z "/>
63 <rect x="175.00000" y="54.00000" width="4" height="4" fill="#00C000" stroke="none"/>
64 <rect x="226.96152" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/>
65 <rect x="123.03848" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/>
66 <rect x="175.00000" y="69.00000" width="4" height="4" fill="#00C000" stroke="none"/>
67 <rect x="213.97114" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/>
68 <rect x="136.02886" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/>
69 <text font-size="12" x="162" y="162">filled</text>
70 </g>
71 </g>
72 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
73 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
74 </g>
75 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
76 <!-- comment out this watermark once the test is approved -->
77 <!--<g id="draft-watermark">
78 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
79 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
80 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
81 </g>-->
82 </svg>