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