Debian Codegraph @

test_non_regression/svg/struct-group-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.6 $" testname="$RCSfile: struct-group-02-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#Groups">
17 <p>
18 The purpose of this test is to check the nesting of SVG elements.
19 </p>
20 <p>
21 The test uses the 'rect' element, as well as basic fill (solid primary colors),
22 stroke (black 1-pixel lines), font-family and font-size properties.
23 </p>
24 <p>
25 There are 4 svg elements in the test.
26 The first defines the outer square at 480x360.
27 The second whose id is lowerRight defines a green rectangle which is 1/4 of the outer svg element.
28 The third svg whose id is upperLeft defines a region that is the upper 1/4 of the outer svg,
29 it is filled with a blue rectangle. It has a child svg element that defines an area
30 half again the size of its parent but sharing the same center point, it is filled with a yellow rectangle.
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 has passed if:
41 </p>
42 <ul>
43 <li>There is a green rectangle covering 1/4 of the testframe area positioned in the lower right corner.</li>
44 <li>There is a blue rectangle covering 1/4 of the testframe area positioned in the upper left corner.</li>
45 <li>There is a yellow rectangle centered inside the blue rectangle, covering half of the area of the blue rectangle.</li>
46 </ul>
47 </d:passCriteria>
48 </d:SVGTestCase>
49 <title id="test-title">$RCSfile: struct-group-02-b.svg,v $</title>
50 <defs>
51 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
52 <font-face-src>
53 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
54 </font-face-src>
55 </font-face>
56 </defs>
57 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
58 <svg xmlns:xlink="http://www.w3.org/1999/xlink" id="lowerRight" x="240" y="180" width="240" height="180">
59 <rect x="0" y="0" width="240" height="180" fill="lime"/>
60 </svg>
61 <svg xmlns:xlink="http://www.w3.org/1999/xlink" id="upperRight" x="0" y="0" width="240" height="180">
62 <rect fill="blue" x="0" y="0" width="240" height="180"/>
63 <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="childArea" x="60" y="45" width="120" height="90">
64 <rect fill="yellow" x="0" y="0" width="120" height="90"/>
65 </svg>
66 </svg>
67 </g>
68 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
69 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
70 </g>
71 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
72 <!-- comment out this watermark once the test is approved -->
73 <!--<g id="draft-watermark">
74 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
75 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
76 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
77 </g>-->
78 </svg>