|
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 <!--======================================================================--> |
|
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 <!-- paint-stroke-BE-02.svg --> |
|
12 <!-- renamed for 1.1 suite to "painting-stroke-03-t.svg --> |
|
13 <!-- Author : Kevin McCluskey, 23-Mar-2000 --> |
|
14 <!-- 1.1 revision by Rick Graham --> |
|
15 <!--======================================================================--> |
|
16 <svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> |
|
17 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
|
18 <OperatorScript version="$Revision: 1.8 $" testname="painting-stroke-01-f.svg"> |
|
19 <Paragraph> |
|
20 Verify the basic capability to handle the stroke properties (stroke, stroke-width |
|
21 stroke-linejoin, stroke-linecap, stroke-miter) |
|
22 in combination with the rect element and straight-line path commands. |
|
23 The pair should be rendered as as two red line segments. |
|
24 The upper segment should have round end caps. The lower segment |
|
25 should be chopped off where the two line segments meet. |
|
26 </Paragraph> |
|
27 <Paragraph> |
|
28 The rendered picture should match the reference image, except for possible |
|
29 variations in the labelling text (per CSS2 rules). |
|
30 </Paragraph> |
|
31 <Paragraph> |
|
32 The test uses the 'path' element, as well as basic fill (solid primary colors), |
|
33 stroke, stroke-width, stroke-linejoin, stroke-linecap, stroke-miter, |
|
34 font-family (Arial) and font-size properties. |
|
35 </Paragraph> |
|
36 </OperatorScript> |
|
37 </SVGTestCase> |
|
38 <title id="test-title">painting-stroke-03-t</title> |
|
39 <desc id="test-desc">Test that viewer has the basic capability to handle the <stroke properties></desc> |
|
40 <!--======================================================================--> |
|
41 <!--Content of Test Case follows... =====================--> |
|
42 <!--======================================================================--> |
|
43 <g id="test-body-content"> |
|
44 <!-- ====================================================================== --> |
|
45 <!-- Test stroke-linecap:round and stroke-miterlimit:1 --> |
|
46 <!-- ====================================================================== --> |
|
47 <text font-family="Arial" font-size="36" x="10" y="40">Basic paint: stroke properties.</text> |
|
48 <path fill="none" stroke="red" stroke-width="30" stroke-linecap="round" d="M 160 70 l 200 20 l -200 20 "/> |
|
49 <path fill="none" stroke="red" stroke-width="30" stroke-linejoin="miter" stroke-miterlimit="1" d="M 160 190 l 200 20 l -200 20"/> |
|
50 <text font-family="Arial" font-size="40" x="60" y="160">stroke-linecap:round</text> |
|
51 <text font-family="Arial" font-size="40" x="130" y="280">stroke-miter:1</text> |
|
52 </g> |
|
53 |
|
54 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text> |
|
55 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
|
56 </svg> |
|
57 |