Debian Codegraph @

test_non_regression/svg/painting-control-02-f.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="Microsoft" status="accepted"
13 version="$Revision: 1.3 $" testname="$RCSfile: painting-control-02-f.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 'Stroke' attributes affected by directionality start at the point at which the graphics element starts.
17 </p>
18 <p>
19 The test creates two 'path' elements that have the same 'stroke-dasharray' assignment. The paths will create the same visual shape,
20 but the start and end points will be opposite. Test passes if the 'stroke-dasharray' of each path is drawn differently.
21 Second subtest is the same but with stroke-dashoffset.
22 </p>
23 </d:testDescription>
24 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 Run the test. No interaction required.
27 </p>
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 Test passes if there are two lines, each composed of alternating black and orange boxes.
32 </p>
33 </d:passCriteria>
34 </d:SVGTestCase>
35 <title id="test-title">$RCSfile: painting-control-02-f.svg,v $</title>
36 <defs>
37 <font-face
38 font-family="SVGFreeSansASCII"
39 unicode-range="U+0-7F">
40 <font-face-src>
41 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
42 </font-face-src>
43 </font-face>
44 </defs>
45 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
46
47 <path d="M 100 100 L 100 190" fill="none" stroke="orange" stroke-width="20" stroke-dasharray="10px 20px 20px" />
48 <path d="M 100 190 L 100 100" fill="none" stroke="black" stroke-width="20" stroke-dasharray="10px 20px 20px" />
49
50 <path d="M 200 100 L 200 190" fill="none" stroke="orange" stroke-width="20" stroke-dashoffset="5px" stroke-dasharray="10px 10px 10px" />
51 <path d="M 200 190 L 200 100" fill="none" stroke="black" stroke-width="20" stroke-dashoffset="5px" stroke-dasharray="10px 10px 10px" />
52
53 </g>
54 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
55 <text id="revision" x="10" y="340" stroke="none"
56 fill="black">$Revision: 1.3 $</text>
57 </g>
58 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
59 <!-- comment out this watermark once the test is approved
60 <g id="draft-watermark">
61 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
62 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
63 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
64 </g>-->
65 </svg>