blob: 9f3161a49213f222f38ab35a116fe9ef6fd1c96b [file] [log] [blame]
<?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-text-02-f.svg -->
<!-- renamed for Basic suite to text-text-03-b.svg -->
<!-- -->
<!-- Test viewer basic capability to handle 'text' elements and a few -->
<!-- text properties. -->
<!-- -->
<!-- Author : Shenxue Zhou (test body content), 25-Feb-2000 & -->
<!-- Lofton Henderson (put into template), 28-Feb-2000 -->
<!-- Revised for 1.1 : Tolga Capin 14-Feb-2002 -->
<!-- Revised for Basic: Takeshi Sagara 04-Jul-2002 -->
<!-- -->
<!-- History: -->
<!-- 28-Feb-2000, SZ & LH: Serial#1 created. -->
<!-- 12-Mar-2000, LH, fix test-framing rect; font Arial; ser#2 -->
<!-- 20-Mar-2000, LH, back to Verdana (Arial doesn't work); ser#3 -->
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
<!-- 04-Jul-2002, TS add viewBox and change font size and positions. -->
<!-- -->
<!-- ===================================================================== -->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<svg version="1.1" baseProfile="basic" 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">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.8 $" testname="text-text-03-b.svg">
<Paragraph>
Test text element, tspan element and various text decorations
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">text-text-03-b</title>
<desc id="test-desc">Test for basic capability to handle 'text' elements and text properties.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<text x="19" y="61" font-size="32" font-family="Verdana" fill="blue" >Plain</text>
<text x="142" y="61" font-size="32" font-family="Verdana" font-style="italic" fill="blue" >Italic</text>
<text x="257" y="60" font-size="32" font-family="Verdana" font-weight="bold" fill="blue" >Bold</text>
<text x="224" y="110" font-size="32" font-family="Verdana" fill="blue" text-decoration="underline" >Underline</text>
<text x="39" y="147" font-size="32" font-family="Verdana" fill="red" text-decoration="line-through" >Line through</text>
<text x="1" y="200" font-size="32" font-family="Verdana" font-style="italic" font-weight="bold" fill="black" text-decoration="underline" >Bold, italic and underlined</text>
<g>
<rect x="50" y="225" width="380" height="64" fill="none" stroke="black" stroke-width="2" />
<g>
<text x="55" y="245" font-size="24" font-family="Arial" fill="black" >Each line of text which flows in a </text>
<text x="55" y="265" font-size="24" font-family="Arial" fill="black" >rectangular box has to be broken</text>
<text x="55" y="285" font-size="24" font-family="Arial" fill="black" >into separated lines.</text>
</g>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<script>
if (window.testRunner)
window.testRunner.dumpSelectionRect();
</script>
</svg>