Debian Codegraph @

test_non_regression/svg/struct-svg-03-f.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 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2008 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="[reviewer]" author="ED" status="created"
15 version="$Revision: 1.1 $" testname="$RCSfile: struct-svg-03-f.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 Test nested svg elements.
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 Passed if there are two green rectangles visible, and no red.
29 </p>
30 </d:passCriteria>
31 </d:SVGTestCase>
32 <title id="test-title">$RCSfile: struct-svg-03-f.svg,v $</title>
33 <defs>
34 <font-face
35 font-family="SVGFreeSansASCII"
36 unicode-range="U+0-7F">
37 <font-face-src>
38 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
39 </font-face-src>
40 </font-face>
41 </defs>
42 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
43
44 <rect x="0.5" y="0.5" width="99" height="99" fill="red"/>
45 <svg width="100" height="100" viewBox="0 0 50 50">
46 <rect width="50" height="50" fill="lime"/>
47 </svg>
48
49 <g transform="translate(120 0)">
50 <rect x="0.5" y="0.5" width="99" height="99" fill="red"/>
51 <svg width="100" height="100" viewBox="0 0 50 50">
52 <svg width="50" height="50" viewBox="0 0 200 200">
53 <rect width="200" height="200" fill="lime"/>
54 </svg>
55 </svg>
56 </g>
57 </g>
58 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
59 <text id="revision" x="10" y="340" stroke="none"
60 fill="black">$Revision: 1.1 $</text>
61 </g>
62 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
63 <g id="draft-watermark">
64 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
65 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
66 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
67 </g>
68 </svg>