0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"
|
|
3 |
[
|
|
4 |
<!ENTITY % svgExt "| SVGTestCase">
|
|
5 |
<!ATTLIST svg baseProfile CDATA #IMPLIED>
|
|
6 |
<!ELEMENT SVGTestCase (OperatorScript)>
|
|
7 |
<!ATTLIST SVGTestCase
|
|
8 |
xmlns CDATA #REQUIRED>
|
|
9 |
<!ELEMENT OperatorScript (Paragraph)*>
|
|
10 |
<!ATTLIST OperatorScript
|
|
11 |
version CDATA #IMPLIED
|
|
12 |
testname CDATA #IMPLIED>
|
|
13 |
<!ELEMENT Paragraph (#PCDATA)>
|
|
14 |
]>
|
|
15 |
|
|
16 |
<!--======================================================================-->
|
|
17 |
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
|
|
18 |
<!--= Institute of Technology, Institut National de Recherche en =-->
|
|
19 |
<!--= Informatique et en Automatique, Keio University). All Rights =-->
|
|
20 |
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
|
|
21 |
<!--======================================================================-->
|
|
22 |
<!-- ===================================================================== -->
|
|
23 |
<!-- -->
|
|
24 |
<!-- structure-defs-BE-04 -->
|
|
25 |
<!-- renamed for 1.1 suite to struct-defs-01-t.svg -->
|
|
26 |
<!-- -->
|
|
27 |
<!-- -->
|
|
28 |
<!-- Author : Tim Thompson 3/16/00 -->
|
|
29 |
<!-- Revised for 1.1 : Phil Armstrong Feb/12/2002 -->
|
|
30 |
<!-- -->
|
|
31 |
<!-- History: -->
|
|
32 |
<!-- 20-mar-2000, test the defs element -->
|
|
33 |
<!-- 08-apr-2000, LH=" fix 'title'" cmmt DOCTYPE; ser#2 -->
|
|
34 |
<!-- 15-may-2000, TT=" changed color to stop color" ser#3 -->
|
|
35 |
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
|
|
36 |
<!-- 14-Nov-2000, LH: add missing test-body-content 'g'. -->
|
|
37 |
<!-- 14-Nov-2000, LH: move defs into test-body-content. -->
|
|
38 |
<!-- -->
|
|
39 |
<!-- ===================================================================== -->
|
|
40 |
<!--======================================================================-->
|
|
41 |
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
|
|
42 |
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
|
|
43 |
<!--======================================================================-->
|
|
44 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root"
|
|
45 |
baseProfile="tiny" width="100%" height="100%" viewBox="0 0 480 360">
|
|
46 |
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
|
|
47 |
<OperatorScript version="$Revision: 1.6 $" testname="struct-defs-01-t.svg">
|
|
48 |
<Paragraph>
|
|
49 |
Test to verify that the defs element is used as a container correctly.
|
|
50 |
</Paragraph>
|
|
51 |
<Paragraph>
|
|
52 |
In this test a fill is created which is solid red. The view should be a solid red rectangle
|
|
53 |
centered in the viewport 100 pixels from from left,top and right,bottom. Also, in the
|
|
54 |
defs sections there are rectangle defined, one to paint over the entire canvas with
|
|
55 |
a green fill and the other to obscure most of the red rectangle. The green rectangles
|
|
56 |
should not show in the view as defs are referenced items and are not rendered.
|
|
57 |
No green should show.
|
|
58 |
</Paragraph>
|
|
59 |
<Paragraph>
|
|
60 |
The rendered picture should match the reference image, except for possible
|
|
61 |
variations in the labelling text (per CSS2 rules).
|
|
62 |
</Paragraph>
|
|
63 |
<Paragraph>
|
|
64 |
The test uses the 'rect' element, as well as basic fill (solid primary colors),
|
|
65 |
stroke (black 1-pixel lines), font-family (Arial) and font-size properties.
|
|
66 |
</Paragraph>
|
|
67 |
</OperatorScript>
|
|
68 |
</SVGTestCase>
|
|
69 |
<title id="test-title">struct-defs-01-t</title>
|
|
70 |
<desc id="test-desc">Test to determine if the defs element is used as a container correctly</desc>
|
|
71 |
<!--======================================================================-->
|
|
72 |
<!--Content of Test Case follows... =====================-->
|
|
73 |
<!--======================================================================-->
|
|
74 |
<g id="test-body-content">
|
|
75 |
<defs id="references">
|
|
76 |
<rect id="rect11" x="0" y="0" width="480" height="360" color="008000"/>
|
|
77 |
</defs>
|
|
78 |
<rect x="140" y="80" width="200" height="200" fill="#F00"/>
|
|
79 |
<defs>
|
|
80 |
<rect x="160" y="100" width="160" height="160" fill="#008000"/>
|
|
81 |
</defs>
|
|
82 |
</g>
|
|
83 |
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.6 $</text>
|
|
84 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
|
85 |
</svg>
|