| 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.5 $" testname="$RCSfile: painting-control-03-f.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#FillProperties"> |
| 15 |
<p> |
| 16 |
Open polyline and path elements are filled as if they were closed with the last point linked to the first point. |
| 17 |
</p> |
| 18 |
<p> |
| 19 |
The test specifies two polylines and two paths on the page with five points each. One polyline/path closes the shape with the fifth |
| 20 |
point linking to the first. One polyline/path is open (no link from fifth point to first). Both polylines/paths are filled. |
| 21 |
The open subpath is placed over the closed one. Test passes if the open subpath fills over the closed path. |
| 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 two black shapes are shown and no red visible on the page. |
| 32 |
</p> |
| 33 |
</d:passCriteria> |
| 34 |
</d:SVGTestCase> |
| 35 |
<title id="test-title">$RCSfile: painting-control-03-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 20 100 L 50 150 L 100 200 L 175 175 L 150 150 z" fill="red" /> |
| 48 |
<path d="M 20 100 L 50 150 L 100 200 L 175 175 L 150 150" fill="black" stroke="black" /> |
| 49 |
|
| 50 |
<polyline points="200 100 250 150 300 200 375 175 350 150 " fill="red" /> |
| 51 |
<polyline points="200 100 250 150 300 200 375 175 350 150 200 100" fill="black" stroke="black" /> |
| 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.5 $</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> |