Debian Codegraph @

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

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.4" reviewer="ED" author="CM" status="accepted"
13 version="$Revision: 1.4 $" testname="$RCSfile: paths-data-16-t.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/paths.html#PathData">
15 <p>
16 This tests that any implicit lineto commands that result from an
17 'M' or 'm' command with more than one pair of coordinates are absolute
18 if the moveto was specified with 'M' and relative if the moveto was
19 specified with 'm'.
20 </p>
21 </d:testDescription>
22 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
23 <p>
24 Run the test. No interaction required.
25 </p>
26 </d:operatorScript>
27 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
28 <p>
29 After loading the test, the test is passed if two yellow
30 triangles with black borders are shown. Otherwise, the
31 test has failed.
32 </p>
33 </d:passCriteria>
34 </d:SVGTestCase>
35 <title id="test-title">$RCSfile: paths-data-16-t.svg,v $</title>
36 <defs>
37 <font-face
38 font-family="SVGFreeSansASCII"
39 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 <text x='10' y='40' font-size='13'>Test relative-ness of implicit lineto path commands</text>
48
49 <g fill='red' stroke='red' stroke-width='16' stroke-linejoin='round'>
50 <path d='M100,120 L160,220 L40,220 z'/>
51 <path d='M350,120 L410,220 L290,220 z'/>
52 </g>
53 <g fill='gold' stroke='black' stroke-width='16' stroke-linejoin='round'>
54 <path d='M100,120 160,220 40,220 z'/>
55 <path d='m350,120 60,100 -120,0 z'/>
56 </g>
57 </g>
58 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
59 <text id="revision" x="10" y="340" stroke="none"
60 fill="black">$Revision: 1.4 $</text>
61 </g>
62 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
63 <!-- comment out this watermark once the test is approved -->
64 <!--<g id="draft-watermark">
65 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
66 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
67 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
68 </g>-->
69 </svg>