Debian Codegraph @

test_non_regression/svg/painting-stroke-06-t.svg

raw
1 <svg version="1.1" baseProfile="tiny" 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="CL" author="CN" status="accepted"
15 version="$Revision: 1.7 $" testname="$RCSfile: painting-stroke-06-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties">
17 <p>
18 Test default effects of stroke-dasharray.
19 </p>
20 <p>
21 This specifically tests the values of none and 0.
22 This also tests an odd number of values in a dash-array attribute
23 and in combination with an offset.
24 </p>
25 </d:testDescription>
26 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
27 Run the test. No interaction required.
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 The top two lines must be solid black. The next line shows a thick
32 black line with a thinner blue line on top; both must have the same
33 dash pattern. The bottom two lines, one black and one blue, must render
34 so that the gaps of one correspond to the dashes of the other.
35 </p>
36 </d:passCriteria>
37 </d:SVGTestCase>
38 <title id="test-title">$RCSfile: painting-stroke-06-t.svg,v $</title>
39 <defs>
40 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
41 <font-face-src>
42 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
43 </font-face-src>
44 </font-face>
45 </defs>
46 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
47 <g transform="scale(1.8)">
48
49 <!-- No dasharray -->
50 <path stroke="black" stroke-width="10" fill="none" stroke-dasharray="none" d=" M 20 20 L 200 20"/>
51
52 <path stroke="black" stroke-width="10" fill="none" stroke-dasharray="0" d=" M 20 40 L 200 40"/>
53
54 <!-- Odd number, should repeat to make an even number -->
55 <path stroke="black" stroke-width="20" fill="none" stroke-dasharray="5,2,5,5,2,5" d=" M 20 60 L 200 60"/>
56 <path stroke="blue" stroke-width="10" fill="none" stroke-dasharray="5,2,5" d=" M 20 60 L 200 60"/>
57
58 <!-- Odd number, with a dashoffset test -->
59 <path stroke="black" stroke-width="10" fill="none" stroke-dasharray="2" d=" M 20 80 L 200 80"/>
60
61 <path stroke="blue" stroke-width="10" fill="none" stroke-dasharray="2" stroke-dashoffset="2" d=" M 20 90 L 200 90"/>
62 </g>
63 </g>
64 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
65 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
66 </g>
67 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
68 <!-- comment out this watermark once the test is approved -->
69 <!--<g id="draft-watermark">
70 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
71 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
72 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
73 </g>-->
74 </svg>