Test for viewer capibility to handle the basics of the 'textAnchor'
alignment property for 'text' and related elements.
There are several groups of sub-tests. The first group at the top has an
initial sub-test with no text-anchor property ("none"), then
tests the three values of the text-anchor property -- start, middle, end --
for simple 'text' elements. In each case, the x-coordinate attribute of
the 'text' element corresponds to the position of the vertical red line.
The second group from the top contains sub-tests to verify that the
interpreter handles text-anchor when the text is comprised of other
text related elements, 'tspan', 'tref', and 'textPath'.
The text-anchor property is present on the containing 'text' element
in these cases, not on the contained child elements.
The third group from the top contains sub-tests to 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.
The rendered picture should match the reference image, except for
possible variations in the text fonts and layout (per CSS2 rules).
The test also uses the 'rect' element,
as well as basic fill (solid primary colors),
stroke (black 1-pixel lines), font-family (Helvetica)
and font-size properties.
text-align-03-f
Test viewer basic capability to handle 'text-anchor' property.
end. text w/ tref
Basic test of 'text-anchor' alignment property.
(The red line corresponds to the "initial current text position".)
Simple text.
none
start
middle
end
none...
start...
middle...
end...
Tspan, tref, toap
start. text w/ red tspan
middle. text w/ bold tspan
Text-anchor: end. Text on path
tspan...
tspan...
tref...
textPath...
Changes in chunks.
Begin with "end" align, and switch to middle in a tspan, and finish with start in another tspan.
end...
middle...
start...
Scalable Vector Graphics (SVG) v1.1 Conformance Suite
Copyright 2002 W3C. All Rights Reserved.
text-align-02-f
$Revision: 1.1 $
Release 1.0