| 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="ED" status="accepted" |
| 13 |
version="$Revision: 1.3 $" testname="$RCSfile: paths-data-20-f.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/paths.html#PathDataEllipticalArcCommands"> |
| 15 |
<p> |
| 16 |
Tests parsing of the elliptical arc path syntax. |
| 17 |
</p> |
| 18 |
</d:testDescription> |
| 19 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 20 |
<p> |
| 21 |
Run the test. No interaction required. |
| 22 |
</p> |
| 23 |
</d:operatorScript> |
| 24 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p> |
| 26 |
The test has passed if the image looks as if there are eight green circles that have |
| 27 |
two white rectangles overlapping them, like in the reference image. If any red is visible |
| 28 |
the test has failed. |
| 29 |
</p> |
| 30 |
</d:passCriteria> |
| 31 |
</d:SVGTestCase> |
| 32 |
<title id="test-title">$RCSfile: paths-data-20-f.svg,v $</title> |
| 33 |
<defs> |
| 34 |
<font-face |
| 35 |
font-family="SVGFreeSansASCII" |
| 36 |
unicode-range="U+0-7F"> |
| 37 |
<font-face-src> |
| 38 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 39 |
</font-face-src> |
| 40 |
</font-face> |
| 41 |
</defs> |
| 42 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 43 |
|
| 44 |
<!-- no commawsp between arc flags --> |
| 45 |
<path d="M120,120 h25 a25,25 0 1,0 -25,25 z" fill="red" stroke="lime"/> |
| 46 |
<path d="M120,120 h25 a25,25 0 10 -25,25z" fill="lime"/> |
| 47 |
|
| 48 |
<!-- no commawsp between arc flags and no commawsp after arc flags --> |
| 49 |
<path d="M200,120 h-25 a25,25 0 1,1 25,25 z" fill="red" stroke="lime"/> |
| 50 |
<path d="M200,120 h-25 a25,25 0 1125,25 z" fill="lime"/> |
| 51 |
|
| 52 |
<!-- out of range large-arc-flag value --> |
| 53 |
<path d="M280,120 h25 a25,25 0 1,0 -25,25 z" fill="lime" stroke="lime"/> |
| 54 |
<path d="M280,120 h25 a25,25 0 6 0 -25,25 z" fill="red"/> |
| 55 |
|
| 56 |
<!-- negative sweep-flag value --> |
| 57 |
<path d="M360,120 h-25 a25,25 0 1,1 25,25 z" fill="lime" stroke="lime"/> |
| 58 |
<path d="M360,120 h-25 a25,25 0 1 -1 25,25 z" fill="red"/> |
| 59 |
|
| 60 |
<!-- no commawsp between sweep-flag and following coordinate-pair --> |
| 61 |
<path d="M120,200 h25 a25,25 0 1,1 -25,-25 z" fill="red" stroke="lime"/> |
| 62 |
<path d="M120,200 h25 a25,25 0 1 1-25,-25 z" fill="lime"/> |
| 63 |
|
| 64 |
<!-- no commawsp before arc flags --> |
| 65 |
<path d="M200,200 h-25 a25,25 0 1,0 25,-25 z" fill="lime" stroke="lime"/> |
| 66 |
<path d="M200,200 h-25 a25,2501 025,-25 z" fill="red"/> |
| 67 |
|
| 68 |
<!-- out of range sweep-flag value --> |
| 69 |
<path d="M280,200 h25 a25,25 0 1,1 -25,-25 z" fill="lime" stroke="lime"/> |
| 70 |
<path d="M280,200 h25 a25 25 0 1 7 -25 -25 z" fill="red"/> |
| 71 |
|
| 72 |
<!-- negative large-arc-flag value --> |
| 73 |
<path d="M360,200 h-25 a25,25 0 1,0 25,-25 z" fill="lime" stroke="lime"/> |
| 74 |
<path d="M360,200 h-25 a25,25 0 -1 0 25,-25 z" fill="red"/> |
| 75 |
</g> |
| 76 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 77 |
<text id="revision" x="10" y="340" stroke="none" |
| 78 |
fill="black">$Revision: 1.3 $</text> |
| 79 |
</g> |
| 80 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 81 |
<!-- comment out this watermark once the test is approved |
| 82 |
<g id="draft-watermark"> |
| 83 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 84 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 85 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 86 |
</g> --> |
| 87 |
</svg> |