Debian Codegraph @

test_non_regression/svg/paths-data-17-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="ED" author="Microsoft" status="accepted"
13 version="$Revision: 1.4 $" testname="$RCSfile: paths-data-17-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/paths.html#PathDataClosePathCommand">
15 <p>
16 Test that the 'z' and 'Z' command have the same effect.
17 </p>
18 <p>
19 Specify four 'path' elements that each use three 'L' commands to draw three sides of a square. The fourth line of each
20 square is drawn via a 'closepath' command. A red square closed via 'z' is covered with a black square closed via 'Z' and
21 vice versa.
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 The test is passed if two black-stroked, unfilled squares are visible and
32 there is no red visible on the page.
33 </p>
34 </d:passCriteria>
35 </d:SVGTestCase>
36 <title id="test-title">$RCSfile: paths-data-17-f.svg,v $</title>
37 <defs>
38 <font-face
39 font-family="SVGFreeSansASCII"
40 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
48 <path d="M 50 50 L 50 150 L 150 150 L 150 50 z" stroke-width="5" stroke="red" fill="none" />
49 <path d="M 50 50 L 50 150 L 150 150 L 150 50 Z" stroke-width="6" stroke="black" fill="none" />
50 <path d="M 250 50 L 250 150 L 350 150 L 350 50 Z" stroke-width="5" stroke="red" fill="none" />
51 <path d="M 250 50 L 250 150 L 350 150 L 350 50 z" stroke-width="6" stroke="black" fill="none" />
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.4 $</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>