Debian Codegraph @

test_non_regression/svg/coords-trans-05-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="SVGWG" author="Vincent Hardy" status="accepted"
15 version="$Revision: 1.7 $" testname="$RCSfile: coords-trans-05-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 The test uses the rect element, the fill color (solid primary colors) and transforms.
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-05-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 transform="translate(0, 30)" font-size="12">
47 <!-- ====================================================================== -->
48 <!-- Now, test elementary transforms. For each transform, 3 markers are -->
49 <!-- placed where the user space is expected after transformations for the -->
50 <!-- origin (black) and the points in (20, 0) (blue) and (0, 20) (red). -->
51 <!-- Then, a blue line going from (0, 0) to (20, 0) is drawn and a red line -->
52 <!-- going from (0, 0) to (0, 20), after applying the elementary -->
53 <!-- transformation. If the test succeeds, the red line should join the -->
54 <!-- black marker to the red marker and the blue line the black marker to -->
55 <!-- the blue marker. -->
56 <!-- ====================================================================== -->
57 <g id="nested-transforms-test">
58 <g id="nested-transforms" transform="translate(-90, -450)">
59 <!-- scale/translate in transform attribute -->
60 <g transform="scale(7.5, 5) translate(16.666667, 105)">
61 <rect x="0" y="0" width="20" height="1" fill="blue"/>
62 <rect x="0" y="0" width="0.67" height="20" fill="red"/>
63 </g>
64 </g>
65 <!-- nested-transforms -->
66 <g id="nested-transforms-test-markers" transform="translate(-90, -450) scale(2.5, 2.5)">
67 <!-- scale and translate -->
68 <text x="40" y="200">scale(25, 95) - translate(2, 2)</text>
69 <rect x="48" y="208" width="5" height="5" fill="black"/>
70 <rect x="108" y="208" width="5" height="5" fill="blue"/>
71 <rect x="48" y="248" width="5" height="5" fill="red"/>
72 </g>
73 <!-- nested-transforms-test-markers -->
74 </g>
75 <!-- nested-transforms test -->
76 </g>
77 </g>
78 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
79 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
80 </g>
81 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
82 <!-- comment out this watermark once the test is approved -->
83 <!--<g id="draft-watermark">
84 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
85 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
86 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
87 </g>-->
88 </svg>