| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 3 |
|
| 4 |
<!--======================================================================--> |
| 5 |
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| 6 |
<!--= Institute of Technology, Institut National de Recherche en =--> |
| 7 |
<!--= Informatique et en Automatique, Keio University). All Rights =--> |
| 8 |
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| 9 |
<!--======================================================================--> |
| 10 |
<!-- ===================================================================== --> |
| 11 |
<!-- --> |
| 12 |
<!-- path-lines-BE-01.svg --> |
| 13 |
<!-- renamed for 1.1 suite to paths-data-04-f.svg --> |
| 14 |
<!-- --> |
| 15 |
<!-- Test that viewer has the basic capability to handle the <path> --> |
| 16 |
<!-- element and data (d) attribute in combination with the moveto, --> |
| 17 |
<!-- lineto, and closepath commands - M, L, Z, m, l, and z. --> |
| 18 |
<!-- --> |
| 19 |
<!-- Author : Lofton Henderson, 20-Jan-2000 (from Mark Sgarlato, Adobe). --> |
| 20 |
<!-- --> |
| 21 |
<!-- History: --> |
| 22 |
<!-- 20-Jan-2000, LH, Serial#1 created. Matches 20000110 SVG spec. --> |
| 23 |
<!-- 12-Mar-2000, LH, fix test-framing rect; ser#2 --> |
| 24 |
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
| 25 |
<!-- 29-Oct-2000, JF: add fill-rule:evenodd to two paths to get same --> |
| 26 |
<!-- visual result as before. Necessary because default --> |
| 27 |
<!-- fill-rule is now nonzero. Update to ser#3. --> |
| 28 |
<!-- --> |
| 29 |
<!-- ===================================================================== --> |
| 30 |
<!--======================================================================--> |
| 31 |
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
| 32 |
<!--= log messages, and therefore is no longer in the preceding preamble.=--> |
| 33 |
<!--======================================================================--> |
| 34 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="480" height="360"> |
| 35 |
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" > |
| 36 |
<OperatorScript> |
| 37 |
<Paragraph> |
| 38 |
Verify the basic capability to handle the 'path' element, and its data attribute (d) |
| 39 |
in combination with the straight-line path commands. |
| 40 |
Four pairs of figures should be displayed in the |
| 41 |
four quadrants. The shapes in each pair are identical, with one stroked and |
| 42 |
one filled. Two pairs of concentric equilateral triangles are drawn using respectively |
| 43 |
M,L,Z and m,l,z. The fill-mode default of "even-odd" means that |
| 44 |
the inner triangle is hollow. Two pairs of staircase figures are drawn using |
| 45 |
respectively M,H,V,Z and m,h,v,z. |
| 46 |
</Paragraph> |
| 47 |
<Paragraph> |
| 48 |
The rendered picture should match the reference image exactly, except for possible |
| 49 |
variations in the labelling text (per CSS2 rules). |
| 50 |
</Paragraph> |
| 51 |
<Paragraph> |
| 52 |
The test uses the 'rect' element, as well as basic fill (solid primary colors), |
| 53 |
stroke (black 1-pixel lines), font-family (Helvetica) and font-size properties. |
| 54 |
</Paragraph> |
| 55 |
</OperatorScript> |
| 56 |
</SVGTestCase> |
| 57 |
|
| 58 |
<title id="test-title">paths-data-04-f</title> |
| 59 |
<desc id="test-desc">Test that viewer has the basic capability to handle the <path> element and data (d) attribute in combination with the moveto, lineto, and closepath commands - M, L, Z, m, l, and z.</desc> |
| 60 |
<!--======================================================================--> |
| 61 |
<!--Content of Test Case follows... =====================--> |
| 62 |
<!--======================================================================--> |
| 63 |
<g id="test-body-content"> |
| 64 |
<!-- ====================================================================== --> |
| 65 |
<!-- First Group of Triangles using M, L & Z commands ===================== --> |
| 66 |
<!-- ====================================================================== --> |
| 67 |
<text font-family="Helvetica" font-size="12" x="160" y="14">Lines drawn with commands:</text> |
| 68 |
<text font-family="Helvetica" font-size="12" x="88" y="30">M, L, L, L, Z,</text> |
| 69 |
<text font-family="Helvetica" font-size="12" x="98" y="46">subpath</text> |
| 70 |
<text font-family="Helvetica" font-size="12" x="88" y="61">M, L, L, L, Z</text> |
| 71 |
<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 "/> |
| 72 |
<rect x="60.00000" y="54.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 73 |
<rect x="111.96152" y="144.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 74 |
<rect x="8.03848" y="144.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 75 |
<rect x="60.00000" y="69.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 76 |
<rect x="98.97114" y="136.50000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 77 |
<rect x="21.02886" y="136.50000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 78 |
<text font-family="Helvetica" font-size="12" x="42" y="162">stroked</text> |
| 79 |
<path id="Triangle_fill_MLZ" fill="#FF0000" 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 "/> |
| 80 |
<rect x="175.00000" y="54.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 81 |
<rect x="226.96152" y="144.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 82 |
<rect x="123.03848" y="144.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 83 |
<rect x="175.00000" y="69.00000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 84 |
<rect x="213.97114" y="136.50000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 85 |
<rect x="136.02886" y="136.50000" width="4" height="4" fill="#00C000" stroke="none" /> |
| 86 |
<text font-family="Helvetica" font-size="12" x="162" y="162">filled</text> |
| 87 |
<!-- ====================================================================== --> |
| 88 |
<!-- Second Group of Triangles using m, l & z commands===================== --> |
| 89 |
<!-- ====================================================================== --> |
| 90 |
<text font-family="Helvetica" font-size="12" x="96" y="180">m, l, l, l, z,</text> |
| 91 |
<text font-family="Helvetica" font-size="12" x="100" y="194">subpath</text> |
| 92 |
<text font-family="Helvetica" font-size="12" x="97" y="208">m, l, l, l, z</text> |
| 93 |
<path id="Triangle_stroke_mlz" fill="none" stroke="#000000" d=" m 62.00000 190.00000 l 51.96152 90.00000 l -103.92304 0.00000 l 51.96152 -90.00000 z m 0.00000 15.00000 l 38.97114 67.50000 l -77.91228 0.00000 l 38.97114 -67.50000 z "/> |
| 94 |
<rect x="60.00000" y="188.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 95 |
<rect x="111.96152" y="278.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 96 |
<rect x="8.03848" y="278.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 97 |
<rect x="60.00000" y="203.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 98 |
<rect x="98.97114" y="270.50000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 99 |
<rect x="21.02886" y="270.50000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 100 |
<path id="Triangle_fill_mlz" fill="#00C000" stroke="none" fill-rule="evenodd" d=" m 177.00000 190.00000 l 51.96152 90.00000 l -103.92304 0.00000 l 51.96152 -90.00000 z m 0.00000 15.00000 l 38.97114 67.50000 l -77.91228 0.00000 l 38.97114 -67.50000 z "/> |
| 101 |
<rect x="175.00000" y="188.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 102 |
<rect x="226.96152" y="278.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 103 |
<rect x="123.03848" y="278.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 104 |
<rect x="175.00000" y="203.00000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 105 |
<rect x="213.97114" y="270.50000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 106 |
<rect x="136.02886" y="270.50000" width="4" height="4" fill="#FF0000" stroke="none" /> |
| 107 |
<!-- ====================================================================== --> |
| 108 |
<!-- First Group of Stairs using M, H, V & Z commands====================== --> |
| 109 |
<!-- ====================================================================== --> |
| 110 |
<text font-family="Helvetica" font-size="12" x="288" y="30">M, H, V, H,</text> |
| 111 |
<text font-family="Helvetica" font-size="12" x="288" y="46">V. H, V, H,</text> |
| 112 |
<text font-family="Helvetica" font-size="12" x="304" y="62">V, Z</text> |
| 113 |
<path id="Stairs_stroke_MHVZ" fill="none" stroke="#000000" d=" M 240.00000 56.00000 H 270.00000 V 86.00000 H 300.00000 V 116.00000 H 330.00000 V 146.00000 H 240.00000 V 56.00000 Z "/> |
| 114 |
<rect x="238.00000" y="54.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 115 |
<rect x="268.00000" y="54.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 116 |
<rect x="268.00000" y="84.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 117 |
<rect x="298.00000" y="84.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 118 |
<rect x="298.00000" y="114.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 119 |
<rect x="328.00000" y="114.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 120 |
<rect x="328.00000" y="144.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 121 |
<rect x="238.00000" y="144.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 122 |
<path id="Stairs_fill_MHVZ" fill="#0000FF" stroke="none" d=" M 350.00000 56.00000 H 380.00000 V 86.00000 H 410.00000 V 116.00000 H 440.00000 V 146.00000 H 350.00000 V 56.00000 Z "/> |
| 123 |
<rect x="348.00000" y="54.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 124 |
<rect x="378.00000" y="54.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 125 |
<rect x="378.00000" y="84.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 126 |
<rect x="408.00000" y="84.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 127 |
<rect x="408.00000" y="114.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 128 |
<rect x="438.00000" y="114.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 129 |
<rect x="438.00000" y="144.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 130 |
<rect x="348.00000" y="144.00000" width="4" height="4" fill="#FFFF00" stroke="none" /> |
| 131 |
<!-- ====================================================================== --> |
| 132 |
<!-- Second Group of Stairs using m, h, v & z commands====================== --> |
| 133 |
<!-- ====================================================================== --> |
| 134 |
<text font-family="Helvetica" font-size="12" x="288" y="180">m, h, v, h</text> |
| 135 |
<text font-family="Helvetica" font-size="12" x="288" y="194">v, h, v, h</text> |
| 136 |
<text font-family="Helvetica" font-size="12" x="304" y="208">v, z</text> |
| 137 |
<path id="Stairs_stroke_mhvz" fill="none" stroke="#000000" d=" m 240.00000 190.00000 h 30.00000 v 30.00000 h 30.00000 v 30.00000 h 30.00000 v 30.00000 h -90.00000 v -90.00000 z "/> |
| 138 |
<rect x="238.00000" y="188.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 139 |
<rect x="268.00000" y="188.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 140 |
<rect x="268.00000" y="218.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 141 |
<rect x="298.00000" y="218.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 142 |
<rect x="298.00000" y="248.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 143 |
<rect x="328.00000" y="248.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 144 |
<rect x="328.00000" y="278.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 145 |
<rect x="238.00000" y="278.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 146 |
<path id="Stairs_fill_mhvz" fill="#FFFF00" stroke="none" d=" m 350.00000 190.00000 h 30.00000 v 30.00000 h 30.00000 v 30.00000 h 30.00000 v 30.00000 h -90.00000 v -90.00000 z "/> |
| 147 |
<rect x="348.00000" y="188.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 148 |
<rect x="378.00000" y="188.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 149 |
<rect x="378.00000" y="218.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 150 |
<rect x="408.00000" y="218.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 151 |
<rect x="408.00000" y="248.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 152 |
<rect x="438.00000" y="248.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 153 |
<rect x="438.00000" y="278.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 154 |
<rect x="348.00000" y="278.00000" width="4" height="4" fill="#0000FF" stroke="none" /> |
| 155 |
</g> |
| 156 |
<!--======================================================================--> |
| 157 |
<!--Legend and frame: Title, suite and SVG document serialization====--> |
| 158 |
<!--======================================================================--> |
| 159 |
<g id="test-legend" fill="black" font-family="Helvetica" font-size="10" > |
| 160 |
<rect x="10" y="300" width="275" height="50" fill="none" stroke="#000000" /> |
| 161 |
<path fill="none" stroke="#000000" d="M10 315 h275 M205 315 v35 M10 336 h195 M205 332 h80"/> |
| 162 |
<text x="25" y="311">Scalable Vector Graphics (SVG) v1.1 Conformance Suite</text> |
| 163 |
<a xlink:href="copyright-documents-19990405.html"> |
| 164 |
<text x="12" y="347" fill="blue" >Copyright 2002 W3C. All Rights Reserved.</text> |
| 165 |
</a> |
| 166 |
<text font-size="12" x="35" y="330">paths-data-04-f</text> |
| 167 |
<text font-size="10" x="210" y="327">$Revision: 1.1 $</text> |
| 168 |
<text font-size="10" x="210" y="345">Release 3.0</text> |
| 169 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000" /> |
| 170 |
</g> |
| 171 |
</svg> |