| 1 |
<svg version="1.1" baseProfile="full" 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-03-f.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 |
Test that the viewer has the basic capability to handle the 'path' |
| 19 |
element and its data (d) attribute in combination with the elliptical |
| 20 |
arc curveto commands, A, a (plus Mm and Zz). |
| 21 |
</p> |
| 22 |
<p> |
| 23 |
There are 6 subtests, each composed from the elliptical arc path commands per |
| 24 |
the label by the subtest. The curve positions |
| 25 |
are marked by small colored squares. Subtests are filled, or stroked, or |
| 26 |
both, using simple style properties and colors. |
| 27 |
</p> |
| 28 |
</d:testDescription> |
| 29 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 30 |
<p> |
| 31 |
Run the test. No interaction required. |
| 32 |
</p> |
| 33 |
</d:operatorScript> |
| 34 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 35 |
<p> |
| 36 |
The rendered picture should match the reference image exactly |
| 37 |
</p> |
| 38 |
</d:passCriteria> |
| 39 |
</d:SVGTestCase> |
| 40 |
<title id="test-title">$RCSfile: paths-data-03-f.svg,v $</title> |
| 41 |
<defs> |
| 42 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 43 |
<font-face-src> |
| 44 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 45 |
</font-face-src> |
| 46 |
</font-face> |
| 47 |
</defs> |
| 48 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 49 |
<text font-size="12" x="120" y="14">Elliptical arc curves drawn with commands:</text> |
| 50 |
<!-- ====================================================================== --> |
| 51 |
<!-- Simple circle using MAZ ============================ --> |
| 52 |
<!-- ====================================================================== --> |
| 53 |
<path id="Arc_MAZ" fill="none" stroke="#03DD20" stroke-width="10" d=" M 25 70 A 40 40 0 1 0 25 69 Z "/> |
| 54 |
<text font-size="12" x="48" y="70">M, A, Z</text> |
| 55 |
<rect x="23" y="68" width="4" height="4" fill="#00C000" stroke="none"/> |
| 56 |
<rect x="23" y="67" width="4" height="4" fill="#00C000" stroke="none"/> |
| 57 |
<!-- ====================================================================== --> |
| 58 |
<!-- filled arc using m, a, & z =================== --> |
| 59 |
<!-- ====================================================================== --> |
| 60 |
<path id="Arc_fill_maz" fill="#00FF00" stroke="#0000FF" d=" m 150 100 a 50 40 0 1 0 25 -70 z "/> |
| 61 |
<text font-size="12" x="124" y="45">m, a, z</text> |
| 62 |
<rect x="148" y="98" width="4" height="4" fill="#CF0000" stroke="none"/> |
| 63 |
<rect x="173" y="28" width="4" height="4" fill="#CF0000" stroke="none"/> |
| 64 |
<!-- ====================================================================== --> |
| 65 |
<!-- Unterminated arc using M & a ======================================== --> |
| 66 |
<!-- ====================================================================== --> |
| 67 |
<path id="Arc_Ma" fill="none" stroke="#000000" d=" M 350 245 a 40 40 0 1 0 80 60 "/> |
| 68 |
<text font-size="12" x="390" y="300">M, a</text> |
| 69 |
<rect x="348" y="243" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 70 |
<rect x="428" y="303" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 71 |
<!-- ====================================================================== --> |
| 72 |
<!-- Triple Arc using M, A, a, a, & z ===================================== --> |
| 73 |
<!-- ====================================================================== --> |
| 74 |
<path id="Tri_MAaaz" fill="#0067C0" stroke="none" fill-rule="evenodd" d=" M 270 30 A 50 50 0 1 0 345 30 a 50 50 0 1 0 50 0 a 50 50 0 1 0 25 0 z "/> |
| 75 |
<text font-size="12" x="280" y="135">M, A, a, a, z</text> |
| 76 |
<rect x="268" y="28" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 77 |
<rect x="343" y="28" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 78 |
<rect x="393" y="28" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 79 |
<rect x="418" y="28" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 80 |
<!-- ====================================================================== --> |
| 81 |
<!-- Tripple arc using M, a, Z, m, A, Z, m, a & z ===================================== --> |
| 82 |
<!-- ====================================================================== --> |
| 83 |
<path id="Arc_MaZmAzmaz" fill="#609040" stroke="#000000" stroke-width="3" d=" M 30 150 a 40 40 0 0 1 65 50 Z m 30 30 A 20 20 0 0 0 125 230 Z m 40 24 a 20 20 0 0 1 65 50 z "/> |
| 84 |
<text font-size="12" x="25" y="270">M, a, Z, m, A, Z, m, a, z</text> |
| 85 |
<rect x="28" y="148" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 86 |
<rect x="93" y="198" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 87 |
<rect x="58" y="178" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 88 |
<rect x="123" y="228" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 89 |
<rect x="98" y="202" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 90 |
<rect x="163" y="252" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 91 |
<!-- ====================================================================== --> |
| 92 |
<!-- Sin Wave using M, q, t, t, t, t, & z ================================ --> |
| 93 |
<!-- ====================================================================== --> |
| 94 |
<path id="Sin_MAAAAA" fill="none" stroke="#40DD20" d=" M 215 190 A 40 200 10 0 0 265 190 A 40 200 20 0 1 315 190 A 40 200 30 0 0 365 190 A 40 200 40 0 1 415 190 A 40 200 50 0 0 465 190 "/> |
| 95 |
<text font-size="12" x="215" y="246">M, A, A, A, A</text> |
| 96 |
<rect x="213" y="188" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 97 |
<rect x="263" y="188" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 98 |
<rect x="313" y="188" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 99 |
<rect x="363" y="188" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 100 |
<rect x="413" y="188" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 101 |
<rect x="463" y="188" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 102 |
</g> |
| 103 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 104 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text> |
| 105 |
</g> |
| 106 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 107 |
<!-- comment out this watermark once the test is approved --> |
| 108 |
<!--<g id="draft-watermark"> |
| 109 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 110 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 111 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 112 |
</g>--> |
| 113 |
</svg> |