Debian Codegraph @

test_non_regression/fail/cap/painting-stroke-10-t.svg

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.4" reviewer="CL" author="CM" status="accepted"
13 version="$Revision: 1.5 $" testname="$RCSfile: painting-stroke-10-t.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties">
15 <p>
16 This tests that stroking of zero length subpaths will result in
17 some rendering if the 'stroke-linecap' property is set to
18 'square' or 'round', but not if it is set to 'butt'.
19 </p>
20 <p>
21 Simply load the test. Two rows of shapes should be presented,
22 with a text label describing the row.
23 </p>
24 </d:testDescription>
25 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 Run the test. No interaction required.
28 </p>
29 </d:operatorScript>
30 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
31 <p>
32 Simply load the test. Two rows of shapes should be presented,
33 with a text label describing the row.
34 </p>
35 </d:passCriteria>
36 </d:SVGTestCase>
37 <title id="test-title">$RCSfile: painting-stroke-10-t.svg,v $</title>
38 <defs>
39 <font-face
40 font-family="SVGFreeSansASCII"
41 unicode-range="U+0-7F">
42 <font-face-src>
43 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
44 </font-face-src>
45 </font-face>
46 </defs>
47 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
48
49 <text x='10' y='40'>Test stroking of zero length subpaths</text>
50
51 <g stroke-width='50' stroke='blue' fill='none'>
52 <path d='M190,170 L190,170' stroke-linecap='round'/>
53 <path d='M290,170 L290,170' stroke-linecap='square'/>
54 <path d='M390,170 L390,170' stroke-linecap='butt' stroke='red'/>
55
56 <path d='M190,240 c0,0 0,0 0,0' stroke-linecap='round'/>
57 <path d='M290,240 c0,0 0,0 0,0' stroke-linecap='square'/>
58 <path d='M390,240 c0,0 0,0 0,0' stroke-linecap='butt' stroke='red'/>
59 </g>
60
61 <g font-size='12'>
62 <text x='10' y='175'>Using an 'L' command:</text>
63 <text x='10' y='245'>Using a 'c' command:</text>
64 </g>
65 </g>
66 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
67 <text id="revision" x="10" y="340" stroke="none"
68 fill="black">$Revision: 1.5 $</text>
69 </g>
70 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
71 <!-- comment out this watermark once the test is approved -->
72 <!--
73 <g id="draft-watermark">
74 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
75 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
76 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
77 </g>-->
78 </svg>