summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/1.1/coords-trans-04-t.svg
blob: fee76c9573ab507b94e0b9e3e6d1bfd6c9f531db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.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/.                =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- coords-transforms-BE-02.svg                                           -->
<!-- Author : Vincent Hardy                                                -->
<!-- renamed for 1.1 suite to coords-trans-04-t.svg                        -->
<!-- Modified for svg 1.1 by Ola Andersson, 07-Mar-2002                    -->
<!--======================================================================-->
<svg version="1.1" baseProfile="tiny" 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.6 $" testname="coords-trans-04-t.svg">
			<Paragraph>
            This test verifies the implementation of transforms. It tests elementary transforms
            and transform nesting.
                           Note that for layout purposes, this test uses nesting of translation with the elementary  transforms.
         </Paragraph>
			<Paragraph>
            The rendered picture should match the reference image exactly except for variations in the labeling text.
         </Paragraph>
			<Paragraph>
            The test uses the rect element, the fill color (solid primary colors) and transforms.
         </Paragraph>
		</OperatorScript>
	</SVGTestCase>
	<title id="test-title">coords-trans-04-t</title>
	<desc id="test-desc">Validates elementary transforms and transformation nesting</desc>
	<!--======================================================================-->
	<!--Content of Test Case follows...                  =====================-->
	<!--======================================================================-->
	<g id="test-body-content" transform="translate(0, 30)">
		<!-- ====================================================================== -->
		<!-- Now, test elementary transforms. For each transform, 3 markers are     -->
		<!-- placed where the user space is expected after transformations for the  -->
		<!-- origin (black) and the points in (20, 0) (blue) and (0, 20) (red).     -->
		<!-- Then, a blue line going from (0, 0) to (20, 0) is drawn and a red line -->
		<!-- going from (0, 0) to (0, 20), after applying the elementary            -->
		<!-- transformation. If the test succeeds, the red line should join the     -->
		<!-- black marker to the red marker and the blue line the black marker to   -->
		<!-- the blue marker.                                                       -->
		<!-- ====================================================================== -->
		<g id="elementary-transforms-test">
			<g id="elementary-transforms" transform="translate(60, 45) scale(2.5, 2.5)">
				<!-- Scale 2 -->
				<g transform="translate(40, 10) scale(2)">
					<rect x="0" y="0" width="20" height="1" fill="blue"/>
					<rect x="0" y="0" width="1" height="20" fill="red"/>
				</g>
			</g>
			<!-- elementary-transforms -->
			<!-- Draw all the markers -->
			<g id="elementary-transforms-test-markers" transform="translate(-364, -230) scale(2.5, 2.5)">
				<!-- Scale 2 -->
				<text x="200" y="110">scale (2)</text>
				<rect x="208" y="118" width="5" height="5" fill="black"/>
				<rect x="248" y="118" width="5" height="5" fill="blue"/>
				<rect x="208" y="158" width="5" height="5" fill="red"/>
			</g>
			<!-- elementary-transforms-test-markers -->
		</g>
	</g>
	<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.6 $</text>
	<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>