Debian Codegraph @

test_non_regression/svg/struct-image-02-b.svg

raw
1 <svg version="1.1" baseProfile="basic" 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="SVGWG" author="Tim Thompson" status="accepted"
15 version="$Revision: 1.9 $" testname="$RCSfile: struct-image-02-b.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 To test the 9 structure elements and their relationships.
19 </p>
20 <p>
21 S1 tests the defs element and the rendering of an image via the use element.
22 S2 tests the defs element and the use element by creating an svg element
23 that contains a blue rectangle. S3 tests the nesting of an SVG element, a
24 separate graphics element is defined, its coords relative to the svg element.
25 S4 tests a switch statement, if there is not a green rectangle showing in
26 S4 there is probably a problem processing a switch.
27 </p>
28 <p>
29 The test uses the 'rect' element, as well as basic fill (solid primary colors),
30 stroke (black 1-pixel lines), font-family and font-size properties.
31 </p>
32 </d:testDescription>
33 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
34 <p>
35 Run the test. No interaction required.
36 </p>
37 </d:operatorScript>
38 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
39 <p>
40 The test is passed if the upper left rectangle shows an image,
41 the upper right a blue rectangle, the lower left a cyan rectangle
42 and the lower right a green rectangle.
43 </p>
44 </d:passCriteria>
45 </d:SVGTestCase>
46 <title id="test-title">$RCSfile: struct-image-02-b.svg,v $</title>
47 <defs>
48 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
49 <font-face-src>
50 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
51 </font-face-src>
52 </font-face>
53 </defs>
54 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
55 <defs>
56 <image id="image1" x="0" y="0" width="240" height="150" xlink:href="../images/struct-image-02.jpg"/>
57 <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="svg01" x="240" y="0" width="240" height="225">
58 <rect width="100%" height="100%" fill="blue"/>
59 </svg>
60 </defs>
61 <g id="square1">
62 <use x="0" y="0" width="240" height="150" xlink:href="#image1"/>
63 </g>
64 <g id="square2">
65 <use xlink:href="#svg01"/>
66 </g>
67 <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="square3" x="0" y="150" width="240" height="150">
68 <g>
69 <rect fill="aqua" x="0" y="0" width="240" height="150"/>
70 </g>
71 </svg>
72 <g id="square4">
73 <switch>
74 <rect fill="red" x="240" y="150" width="240" height="150" requiredFeatures="http://www.w3.org/TR/SVG11/feature#ConditionalProcessing" systemLanguage=""/>
75 <rect fill="blue" x="240" y="150" width="240" height="150" requiredFeatures="http://www.w3.org/TR/SVG11/feature#ConditionalProcessing" systemLanguage=""/>
76 <rect fill="green" x="240" y="150" width="240" height="150" requiredFeatures="http://www.w3.org/TR/SVG11/feature#ConditionalProcessing"/>
77 <rect fill="yellow" x="240" y="150" width="240" height="150" requiredFeatures="http://www.w3.org/TR/SVG11/feature#ConditionalProcessing" systemLanguage=""/>
78 </switch>
79 </g>
80 </g>
81 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
82 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
83 </g>
84 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
85 <!-- comment out this watermark once the test is approved -->
86 <!--<g id="draft-watermark">
87 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
88 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
89 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
90 </g>-->
91 </svg>