Debian Codegraph @

test_non_regression/svg/coords-trans-09-t.svg

raw
1 <svg version="1.1" baseProfile="tiny" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="OA" author="CN" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: coords-trans-09-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/coords.html#EstablishingANewUserSpace">
17 <p>
18 This test verifies the implementation of transforms. It tests elementary transforms
19 and transform nesting.
20 Note that for layout purposes, this test uses nesting of translation with the elementary transforms.
21 </p>
22 <p>
23 This test will check if the various matrix operations work
24 </p>
25 </d:testDescription>
26 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 Run the test. No interaction required.
29 </p>
30 </d:operatorScript>
31 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 The rendered picture should match the reference image exactly except for variations in the labeling text.
34 </p>
35 </d:passCriteria>
36 </d:SVGTestCase>
37 <title id="test-title">$RCSfile: coords-trans-09-t.svg,v $</title>
38 <defs>
39 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
40 <font-face-src>
41 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
42 </font-face-src>
43 </font-face>
44 </defs>
45 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
46 <g id="elementary-transforms-test">
47
48 <g transform="matrix(0 0 0 0 0 0)">
49 <rect x="0" y="0" width="150" height="5" fill="blue"/>
50 <rect x="0" y="0" width="5" height="50" fill="red"/>
51 </g>
52 <text x="6" y="20" font-size="20">matrix(0 0 0 0 0 0)</text>
53
54 <g transform="matrix(1 0 0 1 100 100)">
55 <rect x="0" y="0" width="150" height="5" fill="blue"/>
56 <rect x="0" y="0" width="5" height="50" fill="red"/>
57 </g>
58 <text x="100" y="100" font-size="20">matrix(1 0 0 1 100 100)</text>
59
60 <g transform="matrix(1.5 0 0 1.5 70 60)">
61 <rect x="0" y="0" width="150" height="5" fill="blue"/>
62 <rect x="0" y="0" width="5" height="50" fill="red"/>
63 </g>
64 <text x="70" y="60" font-size="20">matrix(1.5 0 0 1.5 70 60)</text>
65
66 <g transform="matrix(1 0 0.5 1 30 170)">
67 <rect x="0" y="0" width="150" height="5" fill="blue"/>
68 <rect x="0" y="0" width="5" height="50" fill="red"/>
69 </g>
70 <text x="30" y="170" font-size="20">matrix(1 0 0.5 1 30 170)</text>
71
72 <g transform="matrix(1 0.5 0 1 100 200)">
73 <rect x="0" y="0" width="150" height="5" fill="blue"/>
74 <rect x="0" y="0" width="5" height="50" fill="red"/>
75 </g>
76 <text x="100" y="200" font-size="20">matrix(1 0.5 0 1 100 200)</text>
77
78 <g transform="matrix(0 1 -1 0 450 0)">
79 <rect x="0" y="0" width="150" height="5" fill="blue"/>
80 <rect x="0" y="0" width="5" height="50" fill="red"/>
81 </g>
82 <text x="275" y="30" font-size="20">matrix(0 1 -1 0 450 0)</text>
83
84 <g transform="matrix(1 0.8 0.8 1 300 220)">
85 <rect x="0" y="0" width="150" height="5" fill="blue"/>
86 <rect x="0" y="0" width="5" height="50" fill="red"/>
87 </g>
88 <text x="230" y="220" font-size="20">matrix(1 0.8 0.8 1 300 220)</text>
89
90 </g>
91 </g>
92 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
93 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
94 </g>
95 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
96 <!-- comment out this watermark once the test is approved -->
97 <!--<g id="draft-watermark">
98 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
99 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
100 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
101 </g>-->
102 </svg>