Debian Codegraph @

test_non_regression/svg/shapes-polygon-03-t.svg

raw
1 <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <!--======================================================================-->
3 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
4 <!--= Institute of Technology, European Research Consortium for =-->
5 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
6 <!--= All Rights Reserved. =-->
7 <!--= See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="ED" author="Microsoft" status="accepted" version="$Revision: 1.1 $" testname="$RCSfile: shapes-polygon-03-t.svg,v $">
10 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/shapes.html#PolygonElement">
11 <p>
12 Test that 'polyline' and 'polygon' elements with an odd number of coordinates render up to the invalid coordinate.
13 </p>
14 </d:testDescription>
15 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
16 <p>
17 Run the test. No interaction required.
18 </p>
19 </d:operatorScript>
20 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
21 <p>
22 The test is passed if four green triangles are visible on the page, and no red.
23 </p>
24 </d:passCriteria>
25 </d:SVGTestCase>
26 <title id="test-title">$RCSfile: shapes-polygon-03-t.svg,v $</title>
27 <defs>
28 <font-face
29 font-family="SVGFreeSansASCII"
30 unicode-range="U+0-7F">
31 <font-face-src>
32 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
33 </font-face-src>
34 </font-face>
35 </defs>
36 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
37 <polyline fill="red" points="80,200 80,300 150,250 80,200 250" />
38 <polyline fill="lime" points="80,200 80,300 150,250 80,200" />
39 <polyline fill="red" points="180,200 180,300 250,250 180,200" />
40 <polyline fill="lime" points="180,200 180,300 250,250 180,200 250" />
41 <polygon fill="red" points="80,60 80,160 150,110 80" />
42 <polygon fill="lime" points="80,60 80,160 150,110" />
43 <polygon fill="red" points="180,60 180,160 250,110" />
44 <polygon fill="lime" points="180,60 180,160 250,110 180" />
45 </g>
46 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
47 <text id="revision" x="10" y="340" stroke="none"
48 fill="black">$Revision: 1.1 $</text>
49 </g>
50 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
51 <!-- comment out this watermark once the test is approved -->
52 <!--
53 <g id="draft-watermark">
54 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
55 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
56 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
57 </g>-->
58 </svg>