| 1 |
<svg version="1.1" baseProfile="basic" 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="SVGWG" author="Jon Ferraiolo" status="accepted" |
| 15 |
version="$Revision: 1.5 $" testname="$RCSfile: text-deco-01-b.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#TextDecorationProperties"> |
| 17 |
<p> |
| 18 |
Test the 'text-decoration' property. |
| 19 |
</p> |
| 20 |
</d:testDescription> |
| 21 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 22 |
<p> |
| 23 |
Run the test. No interaction required. |
| 24 |
</p> |
| 25 |
</d:operatorScript> |
| 26 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 27 |
<p>The test has passed if:</p> |
| 28 |
<ul> |
| 29 |
<li> |
| 30 |
The first line of text has no decoration. |
| 31 |
</li> |
| 32 |
<li> |
| 33 |
The second line of text has a line through it. |
| 34 |
</li> |
| 35 |
<li> |
| 36 |
The third line of text is underlined. |
| 37 |
</li> |
| 38 |
<li> |
| 39 |
The fourth line of text has a blue underline with a green stroke under |
| 40 |
all characters, except the word "different" which has a yellow underline |
| 41 |
with a green stroke. |
| 42 |
</li> |
| 43 |
</ul> |
| 44 |
</d:passCriteria> |
| 45 |
</d:SVGTestCase> |
| 46 |
<title id="test-title">$RCSfile: text-deco-01-b.svg,v $</title> |
| 47 |
<defs> |
| 48 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 49 |
<font-face-src> |
| 50 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 51 |
</font-face-src> |
| 52 |
</font-face> |
| 53 |
</defs> |
| 54 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 55 |
<g font-size="24" fill="blue" stroke="green" stroke-width=".5"> |
| 56 |
<text x="25" y="65">Normal text</text> |
| 57 |
<text x="25" y="135" text-decoration="line-through">Text with line-through</text> |
| 58 |
<text x="25" y="205" text-decoration="underline">Underlined text</text> |
| 59 |
<!-- START OF PATCH CODE, which is commented out |
| 60 |
<text x="25" y="345" text-decoration="underline" xml:space="preserve">One word has different underlining</text> |
| 61 |
<rect x="25" y="275" width="1000" height="70" stroke="none" fill="white" /> |
| 62 |
END OF PATCH CODE, which is commented out --> |
| 63 |
<text x="25" y="275" text-decoration="underline"> |
| 64 |
<tspan>One</tspan> |
| 65 |
<tspan fill="yellow" stroke="#F0F">word</tspan> |
| 66 |
<tspan fill="yellow" stroke="#000">has</tspan> |
| 67 |
<tspan fill="yellow" stroke="#080" text-decoration="underline">different</tspan> |
| 68 |
<tspan fill="yellow" stroke="#00F">underlining</tspan> |
| 69 |
</text> |
| 70 |
</g> |
| 71 |
</g> |
| 72 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 73 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text> |
| 74 |
</g> |
| 75 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 76 |
<!-- comment out this watermark once the test is approved --> |
| 77 |
<!--<g id="draft-watermark"> |
| 78 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 79 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 80 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 81 |
</g>--> |
| 82 |
</svg> |