<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- -->
<!-- text-textAnchor-BE-05.svg -->
<!-- renamed for 1.1 suite to text-align-02-f.svg -->
<!-- renamed and split for svgt/b to text-align-03-b.svg -->
<!-- -->
<!-- Test viewer basic capability to handle 'text-anchor' property. -->
<!-- -->
<!-- Author : Lofton Henderson, 05-aug-2000. -->
<!-- 1.1 revision by Vincent Hardy -->
<!-- Revised for svgt/b: Ola Andersson Jun/26/2002 -->
<!-- -->
<!-- History: -->
<!-- 05-aug-2000, LH: Serial#1 created. -->
<!-- 23-aug-2000, LH=" add test-body-content 'g'" ser#2 -->
<!-- -->
<!-- ===================================================================== -->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" version="1.1" baseProfile="basic">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<!--nav data here-->
<OperatorScript version="$Revision: 1.5 $" testname="text-align-03-b.svg">
<Paragraph>
Test for viewer capibility to handle the basics of the 'textAnchor'
alignment property for 'text' and related elements.
</Paragraph>
<Paragraph>
This test verify that
the interpreter correctly handles and applies the text-anchor
properties when present on "chunks", which are comprised of tspan elements
with absolute positioning, within the containing 'text' element.
</Paragraph>
<Paragraph>
The rendered picture should match the reference image, except for
possible variations in the text fonts and layout (per CSS2 rules).
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">text-align-03-b</title>
<desc id="test-desc">Test viewer basic capability to handle 'text-anchor' property.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<text x="5" y="40" font-family="Arial" font-size="40" fill="black" >Test of 'text-anchor'</text>
<!-- Test cases -->
<line x1="225" y1="75" x2="225" y2="225" stroke="red" />
<g font-family="Arial" font-size="30" fill="blue" >
<text x="225" y="110" text-anchor="end" >Begin with "end",<tspan x="225" y="160" xml:space="preserve" text-anchor="middle" > switch to "middle" in a tspan, </tspan><tspan x="225" y="210" text-anchor="start" >and "start" ends it.</tspan></text>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<script>
if (window.testRunner)
testRunner.dumpSelectionRect();
var range = document.createRange();
range.selectNode(window.document.documentElement);
var selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(range);
</script>
</svg>