|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" |
|
3 [ |
|
4 <!ENTITY shape " <path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/>"> |
|
5 ]> |
|
6 |
|
7 <!--======================================================================--> |
|
8 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
|
9 <!--= Institute of Technology, Institut National de Recherche en =--> |
|
10 <!--= Informatique et en Automatique, Keio University). All Rights =--> |
|
11 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
|
12 <!--======================================================================--> |
|
13 <!-- ===================================================================== --> |
|
14 <!-- --> |
|
15 <!-- rendering-shape-BE-03.svg --> |
|
16 <!-- renamed for 1.1 suite to render-elems-02-t.svg --> |
|
17 <!-- --> |
|
18 <!-- This test validates that shapes can be both filled and stroked. --> |
|
19 <!-- --> |
|
20 <!-- Author : Vincent Hardy, 02-Mar-2000 --> |
|
21 <!-- Revised for 1.1 : Phil Armstrong Feb/11/2002 --> |
|
22 <!-- --> |
|
23 <!-- History: --> |
|
24 <!-- 02-Mar-2000, VH: Created. Matches 20000302 SVG spec. --> |
|
25 <!-- 11-Mar-2000, LH=" fixed names, focus, ids, framing rect" removed --> |
|
26 <!-- ineffective "text-anchor="middle"" ser#3 --> |
|
27 <!-- 10-Apr-2000, LH: fix framing rect (449->448); ser#4. --> |
|
28 <!-- 02-Jun-2000, LH=" rmv extraneous closing lineto frm "shape"" ser#5. --> |
|
29 <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
|
30 <!-- 16-Aug-2000, LH: renaming, ser#6. --> |
|
31 <!-- --> |
|
32 <!-- ===================================================================== --> |
|
33 <!--======================================================================--> |
|
34 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
|
35 <!--= log messages, and therefore is no longer in the preceding preamble.=--> |
|
36 <!--======================================================================--> |
|
37 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" viewBox="0 0 480 360" width="100%" height="100%" version="1.1" baseProfile="tiny"> |
|
38 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
|
39 <OperatorScript version="$Revision: 1.6 $" testname="render-elems-01-t-b.svg"> |
|
40 <Paragraph> |
|
41 Verifies that shapes can be stroked. |
|
42 </Paragraph> |
|
43 <Paragraph> |
|
44 There is one pair of octagons. These are stroked. |
|
45 </Paragraph> |
|
46 <Paragraph> |
|
47 The rendered image should match the reference image except for the text which may |
|
48 show minor layout differences. |
|
49 </Paragraph> |
|
50 <Paragraph> |
|
51 The test uses the 'rect' element, as well as basic fill (solid primary colors), |
|
52 stroke (primary color 1-pixel and wide lines), font-family (Arial) and font-size properties - |
|
53 the common prerequisites. |
|
54 </Paragraph> |
|
55 </OperatorScript> |
|
56 </SVGTestCase> |
|
57 <title id="test-title">render-elems-02-t</title> |
|
58 <desc id="test-desc">This test validates that shapes can be both stroked.</desc> |
|
59 <!--======================================================================--> |
|
60 <!--Content of Test Case follows... =====================--> |
|
61 <!--======================================================================--> |
|
62 <g id="test-body-content" > |
|
63 <!-- ====================================================================== --> |
|
64 <!-- Now, stroke shape with two different stroke width and color --> |
|
65 <!-- ====================================================================== --> |
|
66 <g transform="translate(30, 80)"> |
|
67 <g fill="none" stroke="red" stroke-width="3" ><path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/></g> |
|
68 <g fill="none" stroke="black" stroke-width="9" transform="translate(200, 0)"><path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/></g> |
|
69 <text x="110" y="-30" font-size="28">Shape stroke</text> |
|
70 </g> |
|
71 </g> |
|
72 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.6 $</text> |
|
73 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
|
74 </svg> |
|
75 |