| 1 |
<svg version="1.1" baseProfile="basic" id="svg-root" |
| 2 |
width="100%" height="100%" viewBox="0 0 80 60" |
| 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="SVGWG" author="Jon Ferraiolo" status="accepted" |
| 15 |
version="$Revision: 1.6 $" testname="$RCSfile: text-spacing-01-b.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#SpacingProperties"> |
| 17 |
<p> |
| 18 |
Test properties 'letter-spacing' and 'word-spacing' |
| 19 |
</p> |
| 20 |
<p> |
| 21 |
The first three lines test property 'letter-spacing', with |
| 22 |
values 0, -1 and .3em respectively. |
| 23 |
</p> |
| 24 |
<p> |
| 25 |
The next three lines test property 'word-spacing', with |
| 26 |
values 0, -3 and 3em respectively. |
| 27 |
</p> |
| 28 |
</d:testDescription> |
| 29 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 30 |
<p> |
| 31 |
Run the test. No interaction required. |
| 32 |
</p> |
| 33 |
</d:operatorScript> |
| 34 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 35 |
<p> |
| 36 |
This test is passed if: |
| 37 |
</p> |
| 38 |
<ul> |
| 39 |
<li> |
| 40 |
The first three lines of text have the letters in the word |
| 41 |
"letter-spacing" spaced according to the values 0, -1 and 0.3em |
| 42 |
respectively. |
| 43 |
</li> |
| 44 |
<li> |
| 45 |
The last three lines of text have the words in the sentence |
| 46 |
"Two Words" spaced according to the values 0, -3 and 3em respectively. |
| 47 |
</li> |
| 48 |
</ul> |
| 49 |
</d:passCriteria> |
| 50 |
</d:SVGTestCase> |
| 51 |
<title id="test-title">$RCSfile: text-spacing-01-b.svg,v $</title> |
| 52 |
<defs> |
| 53 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 54 |
<font-face-src> |
| 55 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 56 |
</font-face-src> |
| 57 |
</font-face> |
| 58 |
</defs> |
| 59 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 60 |
<g font-family="Arial" font-size="8"> |
| 61 |
<text x="3" y="8"> letter-spacing:0 </text> |
| 62 |
<text x="3" y="16" letter-spacing="-1">letter-spacing:-1</text> |
| 63 |
<text x="3" y="24" letter-spacing=".3">letter-spacing:.3</text> |
| 64 |
<text x="3" y="33">ws:0 - Two Words</text> |
| 65 |
<text x="3" y="41" word-spacing="-3">ws:-3 - Two Words</text> |
| 66 |
<text x="3" y="49" word-spacing="3">ws:3 - Two Words</text> |
| 67 |
</g> |
| 68 |
</g> |
| 69 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="6"> |
| 70 |
<text id="revision" x="10" y="57" stroke="none" fill="black">$Revision: 1.6 $</text> |
| 71 |
</g> |
| 72 |
<rect id="test-frame" x="1" y="1" width="78" height="58" fill="none" stroke="#000000"/> |
| 73 |
<!-- comment out this watermark once the test is approved --> |
| 74 |
<!--<g id="draft-watermark"> |
| 75 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 76 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 77 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 78 |
</g>--> |
| 79 |
</svg> |