| 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="Shenxue Zhou" status="accepted" |
| 15 |
version="$Revision: 1.9 $" testname="$RCSfile: text-text-03-b.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#TextElement"> |
| 17 |
<p> |
| 18 |
Test text element, tspan element and various text decorations |
| 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> |
| 28 |
The test is passed if: |
| 29 |
</p> |
| 30 |
<ul> |
| 31 |
<li>the word "Plain" is displayed using a blue serif font</li> |
| 32 |
<li>the word "Italic" is displayed using a blue italic serif font</li> |
| 33 |
<li>the word "Bold" is displayed using a blue serif bold font</li> |
| 34 |
<li>the words "Line through" are displayed with a line through, using a pink serif font</li> |
| 35 |
<li>the word "Underline" is displayed underlined using a blue serif font</li> |
| 36 |
<li>the words "Bold, italic and underlined" are displayed underlined using a bold italic serif font</li> |
| 37 |
</ul> |
| 38 |
</d:passCriteria> |
| 39 |
</d:SVGTestCase> |
| 40 |
<title id="test-title">$RCSfile: text-text-03-b.svg,v $</title> |
| 41 |
<defs> |
| 42 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 43 |
<font-face-src> |
| 44 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 45 |
</font-face-src> |
| 46 |
</font-face> |
| 47 |
<font-face font-family="FreeSerif" unicode-range="U+0-7F" font-weight="400"> |
| 48 |
<font-face-src> |
| 49 |
<font-face-uri xlink:href="../resources/FreeSerif.svg#FreeSerif"/> |
| 50 |
</font-face-src> |
| 51 |
</font-face> |
| 52 |
<font-face font-family="FreeSerif" unicode-range="U+0-7F" font-weight="700"> |
| 53 |
<font-face-src> |
| 54 |
<font-face-uri xlink:href="../resources/FreeSerifBold.svg#FreeSerifBold"/> |
| 55 |
</font-face-src> |
| 56 |
</font-face> |
| 57 |
<font-face font-family="FreeSerif" unicode-range="U+0-7F" font-weight="400" font-style="italic"> |
| 58 |
<font-face-src> |
| 59 |
<font-face-uri xlink:href="../resources/FreeSerifItalic.svg#FreeSerifItalic"/> |
| 60 |
</font-face-src> |
| 61 |
</font-face> |
| 62 |
<font-face font-family="FreeSerif" unicode-range="U+0-7F" font-weight="700" font-style="italic"> |
| 63 |
<font-face-src> |
| 64 |
<font-face-uri xlink:href="../resources/FreeSerifBoldItalic.svg#FreeSerifBoldItalic"/> |
| 65 |
</font-face-src> |
| 66 |
</font-face> |
| 67 |
</defs> |
| 68 |
<g id="test-body-content" font-family="FreeSerif, serif" font-size="18"> |
| 69 |
<text x="19" y="61" font-size="32" fill="blue">Plain</text> |
| 70 |
<text x="142" y="61" font-size="32" font-style="italic" fill="blue">Italic</text> |
| 71 |
<text x="257" y="60" font-size="32" font-weight="bold" fill="blue">Bold</text> |
| 72 |
<text x="224" y="110" font-size="32" fill="blue" text-decoration="underline">Underline</text> |
| 73 |
<text x="39" y="147" font-size="32" fill="fuchsia" text-decoration="line-through">Line through</text> |
| 74 |
<text x="1" y="200" font-size="32" font-style="italic" font-weight="bold" fill="black" text-decoration="underline">Bold, italic and underlined</text> |
| 75 |
<g> |
| 76 |
<rect x="50" y="225" width="380" height="64" fill="none" stroke="black" stroke-width="2"/> |
| 77 |
<g font-family="SVGFreeSansASCII,sans-serif"> |
| 78 |
<text x="55" y="245" font-size="24" fill="black">Each line of text which flows in a </text> |
| 79 |
<text x="55" y="265" font-size="24" fill="black">rectangular box has to be broken</text> |
| 80 |
<text x="55" y="285" font-size="24" fill="black">into separated lines.</text> |
| 81 |
</g> |
| 82 |
</g> |
| 83 |
</g> |
| 84 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 85 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text> |
| 86 |
</g> |
| 87 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 88 |
<!-- comment out this watermark once the test is approved --> |
| 89 |
<!--<g id="draft-watermark"> |
| 90 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 91 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 92 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 93 |
</g>--> |
| 94 |
</svg> |