| 1 |
<!DOCTYPE svg [ |
| 2 |
<!ATTLIST bar id ID #REQUIRED> |
| 3 |
]> |
| 4 |
<svg version="1.1" baseProfile="basic" id="svg-root" |
| 5 |
width="100%" height="100%" viewBox="0 0 480 360" |
| 6 |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 17 |
template-version="1.4" reviewer="ED" author="Chris Lilley" status="accepted" |
| 18 |
version="$Revision: 1.4 $" testname="$RCSfile: text-tref-03-b.svg,v $"> |
| 19 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#TRefElement"> |
| 20 |
<p> |
| 21 |
Test viewer capability to handle 'tref' elements |
| 22 |
which point to elements that have children. The flattened text content is to be used. |
| 23 |
</p> |
| 24 |
<p> |
| 25 |
The test case consists of one sub-test; it results in the word "Flattened" being displayed. |
| 26 |
</p> |
| 27 |
</d:testDescription> |
| 28 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 29 |
<p> |
| 30 |
Run the test. No interaction required. |
| 31 |
</p> |
| 32 |
</d:operatorScript> |
| 33 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 34 |
<p> |
| 35 |
The test is passed if the phrase "Flattened" is displayed, all in green and at the same font size. |
| 36 |
</p> |
| 37 |
</d:passCriteria> |
| 38 |
</d:SVGTestCase> |
| 39 |
<title id="test-title">$RCSfile: text-tref-03-b.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 |
|
| 49 |
<text x="75" y="25" font-family="SVGFreeSansASCII,sans-serif" font-size="12" fill="blue">Test 'tref' element uses flattened textContent.</text> |
| 50 |
|
| 51 |
<text x="75" y="200" font-size="36" font-family="SVGFreeSansASCII,sans-serif" fill="green"> |
| 52 |
<tref xlink:href="#hello"/> |
| 53 |
</text> |
| 54 |
|
| 55 |
<defs> |
| 56 |
<text id="hello">F<tspan fill="blue">l</tspan><tspan fill="red" font-size="100">a</tspan><tspan fill="yellow">t<tspan fill="lime">t</tspan></tspan><tspan fill="orange" dx="50">e</tspan><tspan fill="purple">n</tspan><tspan fill="red">e</tspan><tspan fill="black">d</tspan></text> |
| 57 |
</defs> |
| 58 |
|
| 59 |
|
| 60 |
</g> |
| 61 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 62 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.4 $</text> |
| 63 |
</g> |
| 64 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
</svg> |