1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
4 <!--======================================================================-->
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, Institut National de Recherche en =-->
7 <!--= Informatique et en Automatique, Keio University). All Rights =-->
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================-->
10 <!-- =====================================================================-->
12 <!-- structure-nested-BE-02.svg -->
13 <!-- renamed for 1.1 suite to struct-group-02-b.svg -->
16 <!-- Author : Tim Thompson 3/16/00 -->
17 <!-- Revised for 1.1 : Phil Armstrong Feb/12/2002 -->
18 <!-- Revised for Mobile Profiles: Jun Fujisawa 16-Jul-2002 -->
21 <!-- 20-mar-2000, TGT all testing of nested SVG elements. -->
22 <!-- 21-mar-2000, LH=", comment DOCTYPE for now" fix 'title'; serial#2. -->
23 <!-- 08-apr-2000, LH=", fix so correct wrt origin of nesteds" serial#3. -->
24 <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
25 <!-- 16-Aug-2000, LH="rename" ser#4. -->
26 <!-- 15-Nov-2000, LH: add missing test-body-content group. -->
28 <!-- =====================================================================-->
29 <!--======================================================================-->
30 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
31 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
32 <!--======================================================================-->
33 <svg version=
"1.1" baseProfile=
"basic" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360">
34 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/">
35 <OperatorScript version=
"$Revision: 1.1 $" testname=
"struct-group-02-b.svg">
37 The purpose of this test is to check the nesting of SVG elements. There are
4 svg elements in the test. The first defines the outer square at
480x360. The second whose id is lowerRight defines a red rectangle which is
1/
4 of the outer svg element. The third svg whose id is upperLeft defines a region that is the upper
1/
4 of the outer svg, it is filled with a blue rectangle. It has a child svg element that defines an area half again the size of its parent but sharing the same center point, it is filled with a yellow rectangle. If you don't see three rectangles, upper left in blue with a yellow rectangle centered on it and the lower right in red, positioned as stated, then the application is not correctly interpreting nested svg elements and their relationship to each other.
40 The rendered picture should match the reference image, except for possible
41 variations in the labelling text (per CSS2 rules).
44 The test uses the 'rect' element, as well as basic fill (solid primary colors),
45 stroke (black
1-pixel lines), font-family (Arial) and font-size properties.
49 <title id=
"test-title">struct-group-
02-b
</title>
50 <desc id=
"test-desc">Test that svg elements nested inside of each other will render correctly
</desc>
51 <!--======================================================================-->
52 <!--Content of Test Case follows... =====================-->
53 <!--======================================================================-->
54 <g id=
"test-body-content">
55 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"lowerRight" x=
"240" y=
"180" width=
"240" height=
"180">
56 <rect x=
"0" y=
"0" width=
"240" height=
"180" fill=
"red" />
58 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"upperRight" x=
"0" y=
"0" width=
"240" height=
"180">
59 <rect fill=
"blue" x=
"0" y=
"0" width=
"240" height=
"180"/>
60 <svg version=
"1.1" baseProfile=
"basic" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"childArea" x=
"60" y=
"45" width=
"120" height=
"90">
61 <rect fill=
"yellow" x=
"0" y=
"0" width=
"120" height=
"90"/>
65 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.1 $
</text>
66 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>