Revision control

Copy as Markdown

<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%"
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--======================================================================-->
reviewer="CL" owner="DS" desc="Test viewer basic capability to handle 'text-anchor' property." status="accepted"
approved="yes"
version="$Revision: 1.4 $" testname="$RCSfile: text-align-201-t.svg,v $">
<p>
Test for viewer capability to handle the basics of the 'textAnchor'
alignment property for 'text' when it has child elements.
</p>
<p>
The first line from the top tests that a 'tspan' element is rendered
after the text content of the parent 'text' element.
</p>
<p>
The second line from the top tests that all the text content, including
that of child 'tspan' elements, is taken into account when positioning
the text with respect to its alignment point.
</p>
<p>
The rendered picture should match the reference image, except for
possible variations in the text fonts and layout (per CSS2 rules).
</p>
</d:OperatorScript>
</SVGTestCase>
<title xml:id="test-title">$RCSfile: text-align-201-t.svg,v $</title>
<g xml:id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<text x="5" y="40" font-size="40" fill="black">Test of 'text-anchor'</text>
<text x="20" y="80" font-size="30" fill="black">text-anchor, text and tspan</text>
<!-- Test cases -->
<line x1="220" y1="120" x2="220" y2="260" stroke="red" />
<g font-family="Arial" font-size="30" fill="blue">
<text x="220" y="140" text-anchor="start">
start text
<tspan xml:space="preserve" fill="red"> red tspan</tspan>
</text>
<text x="220" y="180" text-anchor="middle" font-size="23">
first text <tspan font-weight="bold">first tspan</tspan> <tspan font-weight="bold">last tspan</tspan> last text
</text>
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text xml:id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.4 $</text>
</g>
<rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000" />
<!-- comment out this watermark once the test is approved -->
<!--<g xml:id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1" />
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>