Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / resources / paths-data-03-f.svg
blobc671a058b158ec26a00423fa9d950887991194ce
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">
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-curves-BE-04.svg -->
13 <!-- renamed for 1.1 suite to paths-data-03-f.svg -->
14 <!-- -->
15 <!-- Test that the viewer has the basic capability to handle the 'path' -->
16 <!-- element and its data (d) attribute in combination with the elliptical -->
17 <!-- arc curveto commands, A, a (plus Mm and Zz). -->
18 <!-- -->
19 <!-- Author : Lofton Henderson, 29-Feb-2000 (based on work -->
20 <!-- of Mark Sgarlato, Adobe). -->
21 <!-- -->
22 <!-- History: -->
23 <!-- 29-Feb-2000, LRH, Ser#1 created. -->
24 <!-- 12-Mar-2000, LH, fix test-framing rect; ser#2 -->
25 <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
26 <!-- 29-Oct-2000, JF: add fill-rule:evenodd to one path to get same -->
27 <!-- visual result as before. Necessary because default -->
28 <!-- fill-rule is now nonzero. Update to ser#3. -->
29 <!-- 15-Nov-2000, LH: add missing test-body-content group. -->
30 <!-- -->
31 <!-- ===================================================================== -->
32 <!--======================================================================-->
33 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
34 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
35 <!--======================================================================-->
36 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="480" height="360">
38 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" >
39 <OperatorScript>
40 <Paragraph>
41 Test that the viewer has the basic capability to handle the 'path'
42 element and its data (d) attribute in combination with the elliptical
43 arc curveto commands, A, a (plus Mm and Zz).
44 </Paragraph>
45 <Paragraph>
46 There are 6 subtests, each composed from the elliptical arc path commands per
47 the label by the subtest. The curve positions
48 are marked by small colored squares. Subtests are filled, or stroked, or
49 both, using simple style properties and colors.
50 </Paragraph>
51 <Paragraph>
52 The rendered picture should match the reference image exactly, except for possible
53 variations in the labelling text (per CSS2 rules).
54 </Paragraph>
55 <Paragraph>
56 The test uses the 'rect' element, as well as basic fill (solid primary colors),
57 stroke (primary color wide and 1-pixel lines), font-family (Helvetica) and font-size properties.
58 </Paragraph>
59 </OperatorScript>
60 </SVGTestCase>
62 <title id="test-title">paths-data-03-f.svg</title>
63 <desc id="test-desc">Test that the viewer has the basic capability to handle the 'path' element and data (d) attribute in combination with the elliptical Arc curveto commands - A, a (along with Mm and Zz).</desc>
64 <!--======================================================================-->
65 <!--Content of Test Case follows... =====================-->
66 <!--======================================================================-->
67 <g id="test-body-content">
68 <text font-family="Helvetica" font-size="12" x="120" y="14">Elliptical arc curves drawn with commands:</text>
69 <!-- ====================================================================== -->
70 <!-- Simple circle using MAZ ============================ -->
71 <!-- ====================================================================== -->
72 <path id="Arc_MAZ" fill="none" stroke="#FF0000" stroke-width="10" d=" M 25 70 A 40 40 0 1 0 25 69 Z "/>
73 <text font-family="Helvetica" font-size="12" x="48" y="70">M, A, Z</text>
74 <rect x="23" y="68" width="4" height="4" fill="#00C000" stroke="none" />
75 <rect x="23" y="67" width="4" height="4" fill="#00C000" stroke="none" />
76 <!-- ====================================================================== -->
77 <!-- filled arc using m, a, & z =================== -->
78 <!-- ====================================================================== -->
79 <path id="Arc_fill_maz" fill="#00FF00" stroke="#0000FF" d=" m 150 100 a 50 40 0 1 0 25 -70 z "/>
80 <text font-family="Helvetica" font-size="12" x="124" y="45">m, a, z</text>
81 <rect x="148" y="98" width="4" height="4" fill="#CF0000" stroke="none" />
82 <rect x="173" y="28" width="4" height="4" fill="#CF0000" stroke="none" />
83 <!-- ====================================================================== -->
84 <!-- Unterminated arc using M & a ======================================== -->
85 <!-- ====================================================================== -->
86 <path id="Arc_Ma" fill="none" stroke="#000000" d=" M 350 245 a 40 40 0 1 0 80 60 "/>
87 <text font-family="Helvetica" font-size="12" x="390" y="300">M, a</text>
88 <rect x="348" y="243" width="4" height="4" fill="#0000FF" stroke="none" />
89 <rect x="428" y="303" width="4" height="4" fill="#0000FF" stroke="none" />
90 <!-- ====================================================================== -->
91 <!-- Triple Arc using M, A, a, a, & z ===================================== -->
92 <!-- ====================================================================== -->
93 <path id="Tri_MAaaz" fill="#C0C000" 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 "/>
94 <text font-family="Helvetica" font-size="12" x="280" y="135">M, A, a, a, z</text>
95 <rect x="268" y="28" width="4" height="4" fill="#0000FF" stroke="none" />
96 <rect x="343" y="28" width="4" height="4" fill="#0000FF" stroke="none" />
97 <rect x="393" y="28" width="4" height="4" fill="#0000FF" stroke="none" />
98 <rect x="418" y="28" width="4" height="4" fill="#0000FF" stroke="none" />
99 <!-- ====================================================================== -->
100 <!-- Tripple arc using M, a, Z, m, A, Z, m, a & z ===================================== -->
101 <!-- ====================================================================== -->
102 <path id="Arc_MaZmAzmaz" fill="#CF0000" 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 "/>
103 <text font-family="Helvetica" font-size="12" x="25" y="270">M, a, Z, m, A, Z, m, a, z</text>
104 <rect x="28" y="148" width="4" height="4" fill="#0000FF" stroke="none" />
105 <rect x="93" y="198" width="4" height="4" fill="#0000FF" stroke="none" />
106 <rect x="58" y="178" width="4" height="4" fill="#0000FF" stroke="none" />
107 <rect x="123" y="228" width="4" height="4" fill="#0000FF" stroke="none" />
108 <rect x="98" y="202" width="4" height="4" fill="#0000FF" stroke="none" />
109 <rect x="163" y="252" width="4" height="4" fill="#0000FF" stroke="none" />
110 <!-- ====================================================================== -->
111 <!-- Sin Wave using M, q, t, t, t, t, & z ================================ -->
112 <!-- ====================================================================== -->
113 <path id="Sin_MAAAAA" fill="none" stroke="#FF0000" 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 "/>
114 <text font-family="Helvetica" font-size="12" x="215" y="246">M, A, A, A, A</text>
115 <rect x="213" y="188" width="4" height="4" fill="#0000FF" stroke="none" />
116 <rect x="263" y="188" width="4" height="4" fill="#0000FF" stroke="none" />
117 <rect x="313" y="188" width="4" height="4" fill="#0000FF" stroke="none" />
118 <rect x="363" y="188" width="4" height="4" fill="#0000FF" stroke="none" />
119 <rect x="413" y="188" width="4" height="4" fill="#0000FF" stroke="none" />
120 <rect x="463" y="188" width="4" height="4" fill="#0000FF" stroke="none" />
121 </g>
122 <!--======================================================================-->
123 <!--Legend and frame: Title, suite and SVG document serialization====-->
124 <!--======================================================================-->
125 <g id="test-legend" fill="black" font-family="Helvetica" font-size="10" >
126 <rect x="10" y="300" width="275" height="50" fill="none" stroke="#000000" />
127 <path fill="none" stroke="#000000" d="M10 315 h275 M205 315 v35 M10 336 h195 M205 332 h80"/>
128 <text x="25" y="311">Scalable Vector Graphics (SVG) v1.1 Conformance Suite</text>
129 <a xlink:href="copyright-documents-19990405.html">
130 <text x="12" y="347" fill="blue" >Copyright 2002 W3C. All Rights Reserved.</text>
131 </a>
132 <text font-size="12" x="35" y="330">paths-data-03-f</text>
133 <text font-size="10" x="210" y="327">$Revision: 1.1 $</text>
134 <text font-size="10" x="210" y="345">Release 1.0</text>
135 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000" />
136 </g>
137 </svg>