Debian Codegraph @

test_non_regression/svg/coords-trans-10-f.svg

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.4" reviewer="CL" author="Microsoft" status="accepted"
13 version="$Revision: 1.9 $" testname="$RCSfile: coords-trans-10-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/coords.html#EstablishingANewUserSpace">
15 <p>
16 Translation is equivalent to the matrix [1 0 0 1 tx ty], where 'tx'
17 and 'ty' are the distances to translate coordinates in X and Y
18 respectively. The test overlays a group of black graphics elements
19 with a 'translate' transform specified on top of an identical group
20 of red elements with the equivalent 'matrix' transform and vice
21 versa.
22 </p>
23 </d:testDescription>
24 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 Run the test. No interaction required.
27 </p>
28 </d:operatorScript>
29 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
30 <p>
31 Test passes if there is no red visible on the page.
32 </p>
33 </d:passCriteria>
34 </d:SVGTestCase>
35 <title id="test-title">$RCSfile: coords-trans-10-f.svg,v $</title>
36 <defs>
37 <font-face
38 font-family="SVGFreeSansASCII"
39 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
47 <g transform="translate(40 20)" fill="red">
48 <path d="M 20 20 L 70 20 L 45 60 z" />
49 <ellipse cx="120" cy="35" rx="30" ry="10" />
50 <text x="160" y="40">Filler Text</text>
51 <rect x="250" y="20" width="30" height="50" />
52 <line x1="310" y1="20" x2="350" y2="70" stroke-width="5" />
53 </g>
54 <g transform="matrix(1 0 0 1 40 20)" fill="black" stroke="black">
55 <path d="M 20 20 L 70 20 L 45 60 z" />
56 <ellipse cx="120" cy="35" rx="30" ry="10" />
57 <text x="160" y="40">Filler Text</text>
58 <rect x="250" y="20" width="30" height="50" />
59 <line x1="310" y1="20" x2="350" y2="70" stroke-width="5" />
60 </g>
61 <g transform="translate(0 100)">
62 <g transform="matrix(1 0 0 1 40 20)" fill="red">
63 <path d="M 20 20 L 70 20 L 45 60 z" />
64 <ellipse cx="120" cy="35" rx="30" ry="10" />
65 <text x="160" y="40">Filler Text</text>
66 <rect x="250" y="20" width="30" height="50" />
67 <line x1="310" y1="20" x2="350" y2="70" stroke-width="5" />
68 </g>
69 <g transform="translate(40 20)" fill="black" stroke="black">
70 <path d="M 20 20 L 70 20 L 45 60 z" />
71 <ellipse cx="120" cy="35" rx="30" ry="10" />
72 <text x="160" y="40">Filler Text</text>
73 <rect x="250" y="20" width="30" height="50" />
74 <line x1="310" y1="20" x2="350" y2="70" stroke-width="5" />
75 </g>
76 </g>
77
78 </g>
79 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
80 <text id="revision" x="10" y="340" stroke="none"
81 fill="black">$Revision: 1.9 $</text>
82 </g>
83 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
84 <!-- comment out this watermark once the test is approved
85 <g id="draft-watermark">
86 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
87 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
88 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
89 </g>-->
90 </svg>