| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd"> |
| |
| <!--======================================================================--> |
| <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, Institut National de Recherche en =--> |
| <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <!-- =====================================================================--> |
| <!-- --> |
| <!-- structure-nested-BE-02.svg --> |
| <!-- renamed for 1.1 suite to struct-group-02-b.svg --> |
| <!-- --> |
| <!-- --> |
| <!-- Author : Tim Thompson 3/16/00 --> |
| <!-- Revised for 1.1 : Phil Armstrong Feb/12/2002 --> |
| <!-- Revised for Mobile Profiles: Jun Fujisawa 16-Jul-2002 --> |
| <!-- --> |
| <!-- History: --> |
| <!-- 20-mar-2000, TGT all testing of nested SVG elements. --> |
| <!-- 21-mar-2000, LH=", comment DOCTYPE for now" fix 'title'; serial#2. --> |
| <!-- 08-apr-2000, LH=", fix so correct wrt origin of nesteds" serial#3. --> |
| <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
| <!-- 16-Aug-2000, LH="rename" ser#4. --> |
| <!-- 15-Nov-2000, LH: add missing test-body-content group. --> |
| <!-- --> |
| <!-- =====================================================================--> |
| <!--======================================================================--> |
| <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
| <!--= log messages, and therefore is no longer in the preceding preamble.=--> |
| <!--======================================================================--> |
| <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"> |
| <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
| <OperatorScript version="$Revision: 1.1 $" testname="struct-group-02-b.svg"> |
| <Paragraph> |
| 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. |
| </Paragraph> |
| <Paragraph> |
| The rendered picture should match the reference image, except for possible |
| variations in the labelling text (per CSS2 rules). |
| </Paragraph> |
| <Paragraph> |
| The test uses the 'rect' element, as well as basic fill (solid primary colors), |
| stroke (black 1-pixel lines), font-family (Arial) and font-size properties. |
| </Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| <title id="test-title">struct-group-02-b</title> |
| <desc id="test-desc">Test that svg elements nested inside of each other will render correctly</desc> |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <g id="test-body-content"> |
| <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"> |
| <rect x="0" y="0" width="240" height="180" fill="red" /> |
| </svg> |
| <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"> |
| <rect fill="blue" x="0" y="0" width="240" height="180"/> |
| <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"> |
| <rect fill="yellow" x="0" y="0" width="120" height="90"/> |
| </svg> |
| </svg> |
| </g> |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.1 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |