Debian Codegraph @

test_non_regression/svg/text-ws-03-t.svg

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.3" reviewer="CL" author="CM" status="issue"
13 version="$Revision: 1.9 $" testname="$RCSfile: text-ws-03-t.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#WhiteSpace">
15 <!-- RESOLUTION 2011-03-04 deprecate xml;space in favour of CSS whitespace property, for SVG2 -->
16 <p>
17 This tests that an 'xml:space' attribute on a text element child
18 will be honored.
19 </p>
20 </d:testDescription>
21 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
22 <p>
23 Run the test. No interaction required.
24 </p>
25 </d:operatorScript>
26 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 After loading the test, four blue text strings and
29 four orange text strings should be presented.
30 </p>
31 <p>
32 The test is passed if all four blue text strings appear
33 identical (with a large space between the "b" and the "c"
34 on each line), and all four orange text strings appear
35 identical (with a small space between the "b" and the "c"
36 on each line).
37 </p>
38 </d:passCriteria>
39 </d:SVGTestCase>
40 <title id="test-title">$RCSfile: text-ws-03-t.svg,v $</title>
41 <defs>
42 <font-face
43 font-family="SVGFreeSansASCII"
44 unicode-range="U+0-7F">
45 <font-face-src>
46 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
47 </font-face-src>
48 </font-face>
49 </defs>
50 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
51
52 <text x='10' y='30' font-size='14'>Test that xml:space="" is honored on text element children</text>
53
54 <g font-size='24'>
55 <text id="t2" display="none"> cd</text>
56 <g fill='blue'>
57 <text x='100' y='100' xml:space="preserve">ab cd</text>
58 <text x='100' y='130'>ab<tspan id="t1" xml:space="preserve"> cd</tspan></text>
59 <text x='100' y='160'>ab<tref xml:space="preserve" xlink:href="#t1"/></text>
60 <text x='100' y='190'>ab<tref xml:space="preserve" xlink:href="#t2"/></text>
61 </g>
62
63 <text id="t4" display="none">b cd</text>
64 <g fill='#ffa500'>
65 <text x='300' y='100'>ab cd</text>
66 <text x='300' y='130' xml:space="preserve">a<tspan id="t3" xml:space="default">b cd</tspan></text>
67 <text x='300' y='160' xml:space="preserve">a<tref xml:space="default" xlink:href="#t3"/></text>
68 <text x='300' y='190' xml:space="preserve">a<tref xml:space="default" xlink:href="#t4"/></text>
69 </g>
70 </g>
71
72 </g>
73 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
74 <text id="revision" x="10" y="340" stroke="none"
75 fill="black">$Revision: 1.9 $</text>
76 </g>
77 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
78 <!-- comment out this watermark once the test is approved -->
79 <g id="draft-watermark">
80 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
81 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
82 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
83 </g>
84 </svg>