Test for viewer capability to handle the basics of the 'tref' element
and its attributes. Basic referencing is tested, as well as
the equivalence of 'tref' to 'tspan' in attributes handling.
There are five sub-tests.
The first box down from the top should contain green "Simple internal referenced text.",
which is obtained by a 'tref' element reference to a 'text' element in a 'defs'
section of this test file.
The second box from the top tests changing of visual properties
of 'tref' substrings. It should contain
the string "Change color within string.", blue except for the single
word "color" in red. Three 'tref' elements within the
'text' element each point to a substring in the 'defs' section of
this test file -- the second 'tref' sets fill color to red and the
others set fill color to blue.
The third box from the top tests an x-coordinate list in a 'tref',
which individually places each character of the string "Char-by-char."
The string is in a single 'text' element in the 'defs' section.
The fourth box from the top tests that the x,y attributes of 'tref' behave
like those of 'tspan'. The string
"Bouncing up and down." is formed by four 'tref' elements pointing to 'text'
elements in the 'defs' section, and each 'tref' is individually
positioned by the x,y attributes.
The final sub-test actually involves the single-line test description at the very
top. It is written initially in blue, and then at the end is over-written in
black by a 'tref' pointing to the 'desc' element of the test.
The rendered picture should match the reference image, except that some color
"fuzziness" in the top line may result from anti-aliasing.
Also, variations are possible 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-tref-01-f
Basic test of 'tref' element and its attributes.
Simple internal referenced text.
Change
color
within string.
Bouncing
up
and
down.
Char-by-char.
Basic test of 'tref' element and its attributes.
'tref', within file
multiple 'tref' and property changes
'tref' with x-coordinate list
'tref's with x/y attribute changes
Scalable Vector Graphics (SVG) v1.1 Conformance Suite
Copyright 2002 W3C. All Rights Reserved.
text-tref-01-f
$Revision: 1.1 $
Release 1.0