Debian Codegraph @

test_non_regression/svg/struct-image-07-t.svg

raw
1 <svg version="1.1" baseProfile="tiny" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="CN" author="VH" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: struct-image-07-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#ImageElement">
17 <p>
18 This test validates that xml:base is properly handled on the
19 &lt;image&gt; element.
20 </p>
21 <p>
22 It shows the same image three times, with different xml:base and
23 xlink:href values.
24 </p>
25 </d:testDescription>
26 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
27 <p>Run the test. No interaction required.</p>
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>The test is passed if three smiley face images are shown.</p>
31 </d:passCriteria>
32 </d:SVGTestCase>
33 <title id="test-title">$RCSfile: struct-image-07-t.svg,v $</title>
34 <defs>
35 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
36 <font-face-src>
37 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
38 </font-face-src>
39 </font-face>
40 </defs>
41 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
42 <g transform="translate(10,0)">
43 <!-- Default, base is the document URI -->
44 <g transform="translate(40, 100)">
45 <text x="50" y="-30" text-anchor="middle" font-size="24">no</text>
46 <text x="50" text-anchor="middle" font-size="24">xml:base</text>
47 <image xlink:href="../images/smiley.png" x="0" y="20" width="100" height="100"/>
48 </g>
49
50 <!-- xml:base on image -->
51 <g transform="translate(180, 100)">
52 <text x="50" y="-30" text-anchor="middle" font-size="24">xml:base</text>
53 <text x="50" text-anchor="middle" font-size="24">on image</text>
54 <image xml:base="../images/" xlink:href="smiley.png" x="0" y="20" width="100" height="100"/>
55 </g>
56
57 <!-- xml:base on group -->
58 <g transform="translate(320, 100)" xml:base="../images/">
59 <text x="50" y="-30" text-anchor="middle" font-size="24">xml:base</text>
60 <text x="50" text-anchor="middle" font-size="24">on parent</text>
61 <image xlink:href="smiley.png" x="0" y="20" width="100" height="100"/>
62 </g>
63 </g>
64 </g>
65 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
66 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
67 </g>
68 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
69 <!-- comment out this watermark once the test is approved -->
70 <!--<g id="draft-watermark">
71 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
72 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
73 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
74 </g>-->
75 </svg>