Debian Codegraph @

test_non_regression/svg/coords-trans-07-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-07-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 - a long blue line at four o'clock and a short red line at seven o'clock below the text "translate+rotate", and, below and to the left of that, a long green line at four o'clock and a short red line at seven o'clock below the text "rotate+translate".
34 </p>
35 </d:passCriteria>
36 </d:SVGTestCase>
37 <title id="test-title">$RCSfile: coords-trans-07-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 <g id="object_1" transform="rotate(30) translate(200, 100)">
48 <rect x="0" y="0" width="150" height="5" fill="green"/>
49 <rect x="0" y="0" width="5" height="50" fill="red"/>
50 </g>
51 <text x="65" y="185" font-size="20">rotate+translate</text>
52
53 <g id="object_2" transform="translate(200,100) rotate(30)">
54 <rect x="0" y="0" width="150" height="5" fill="blue"/>
55 <rect x="0" y="0" width="5" height="50" fill="red"/>
56 </g>
57 <text x="150" y="100" font-size="20">translate+rotate</text>
58 </g>
59 </g>
60 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
61 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
62 </g>
63 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
64 <!-- comment out this watermark once the test is approved -->
65 <!--<g id="draft-watermark">
66 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
67 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
68 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
69 </g>-->
70 </svg>