| 1 |
<svg version="1.1" baseProfile="tiny" shape-rendering="geometricPrecision" id="svg-root" |
| 2 |
width="100%" height="100%" viewBox="0 0 480 360" |
| 3 |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
<!--======================================================================--> |
| 5 |
<!--= SVG 1.1 2nd Edition Test Case =--> |
| 6 |
<!--======================================================================--> |
| 7 |
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> |
| 8 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 9 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 10 |
<!--= All Rights Reserved. =--> |
| 11 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 12 |
<!--======================================================================--> |
| 13 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 14 |
template-version="1.4" reviewer="CL" author="BB" status="accepted" |
| 15 |
version="$Revision: 1.6 $" testname="$RCSfile: painting-stroke-05-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties"> |
| 17 |
<p> |
| 18 |
User agents may render graphical primitives with different levels of accuracy. |
| 19 |
This test is aimed at determining how a UA renders thin strokes. |
| 20 |
</p> |
| 21 |
<p> |
| 22 |
The test file contains a number of vertical and horizontal lines. |
| 23 |
The stroke width of the vertical lines increase from left to right. |
| 24 |
The stroke width of the horizontal lines increase from top to bottom. |
| 25 |
</p> |
| 26 |
</d:testDescription> |
| 27 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 28 |
Run the test. No interaction required. |
| 29 |
</d:operatorScript> |
| 30 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 31 |
<p> |
| 32 |
The test is passed if user is able to see a smooth stroke width |
| 33 |
increment for the vertical and horizontal lines. The top left hand |
| 34 |
corner should contain strokes that are very thin in width and the bottom |
| 35 |
right hand corner should contain thick strokes. |
| 36 |
</p> |
| 37 |
</d:passCriteria> |
| 38 |
</d:SVGTestCase> |
| 39 |
<title id="test-title">$RCSfile: painting-stroke-05-t.svg,v $</title> |
| 40 |
<defs> |
| 41 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 42 |
<font-face-src> |
| 43 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 44 |
</font-face-src> |
| 45 |
</font-face> |
| 46 |
</defs> |
| 47 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 48 |
<text font-size="20" x="240" y="30" text-anchor="middle">Rendering thin strokes</text> |
| 49 |
|
| 50 |
<polyline points="030,50 030,300" stroke="black" stroke-width="0.001"/> |
| 51 |
<polyline points="50,50 50,300" stroke="black" stroke-width="0.1"/> |
| 52 |
<polyline points="70,50 70,300" stroke="black" stroke-width="0.2"/> |
| 53 |
<polyline points="90,50 90,300" stroke="black" stroke-width="0.3"/> |
| 54 |
<polyline points="110,50 110,300" stroke="black" stroke-width="0.4"/> |
| 55 |
<polyline points="130,50 130,300" stroke="black" stroke-width="0.5"/> |
| 56 |
<polyline points="150,50 150,300" stroke="black" stroke-width="0.6"/> |
| 57 |
<polyline points="170,50 170,300" stroke="black" stroke-width="0.7"/> |
| 58 |
<polyline points="190,50 190,300" stroke="black" stroke-width="0.8"/> |
| 59 |
<polyline points="210,50 210,300" stroke="black" stroke-width="0.9"/> |
| 60 |
<polyline points="230,50 230,300" stroke="black" stroke-width="1.0"/> |
| 61 |
<polyline points="250,50 250,300" stroke="black" stroke-width="1.1"/> |
| 62 |
<polyline points="270,50 270,300" stroke="black" stroke-width="1.2"/> |
| 63 |
<polyline points="290,50 290,300" stroke="black" stroke-width="1.3"/> |
| 64 |
<polyline points="310,50 310,300" stroke="black" stroke-width="1.4"/> |
| 65 |
<polyline points="330,50 330,300" stroke="black" stroke-width="1.5"/> |
| 66 |
<polyline points="350,50 350,300" stroke="black" stroke-width="1.6"/> |
| 67 |
<polyline points="370,50 370,300" stroke="black" stroke-width="1.7"/> |
| 68 |
<polyline points="390,50 390,300" stroke="black" stroke-width="1.8"/> |
| 69 |
<polyline points="410,50 410,300" stroke="black" stroke-width="1.9"/> |
| 70 |
<polyline points="430,50 430,300" stroke="black" stroke-width="2.0"/> |
| 71 |
<polyline points="450,50 450,300" stroke="black" stroke-width="2.1"/> |
| 72 |
|
| 73 |
<line x1="10" x2="470" y1="100" y2="100" stroke="darkblue" stroke-width="0.1"/> |
| 74 |
<line x1="10" x2="470" y1="150" y2="150" stroke="darkblue" stroke-width="0.5"/> |
| 75 |
<line x1="10" x2="470" y1="200" y2="200" stroke="darkblue" stroke-width="1"/> |
| 76 |
<line x1="10" x2="470" y1="250" y2="250" stroke="darkblue" stroke-width="2"/> |
| 77 |
</g> |
| 78 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 79 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> |
| 80 |
</g> |
| 81 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 82 |
<!-- comment out this watermark once the test is approved --> |
| 83 |
<!--<g id="draft-watermark"> |
| 84 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 85 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 86 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 87 |
</g>--> |
| 88 |
</svg> |