Debian Codegraph @

test_non_regression/svg/coords-transformattr-02-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.4 $" testname="$RCSfile: coords-transformattr-02-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/coords.html#TransformAttribute">
15 <p>
16 If a list of transforms is provided, then the net effect is as if each transform had been specified separately in the order provided.
17 </p>
18 <p> The test overlays a black 'rect' with transform list on top of an equivalent red 'rect' with equivalent nested transforms, and vice
19 versa, so that there is no red visible on the page.</p>p>
20 </d:testDescription>
21 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
22 <p>
23 Run the test. No interaction required.
24 </p>
25 </d:operatorScript>
26 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 Test passes if there is no red visible on the page.
29 </p>
30 </d:passCriteria>
31 </d:SVGTestCase>
32 <title id="test-title">$RCSfile: coords-transformattr-02-f.svg,v $</title>
33 <defs>
34 <font-face
35 font-family="SVGFreeSansASCII"
36 unicode-range="U+0-7F">
37 <font-face-src>
38 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
39 </font-face-src>
40 </font-face>
41 </defs>
42 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
43
44 <g transform="translate(150)">
45 <g transform="translate(-10,-20) scale(2) rotate(45) translate(5,10)">
46 <rect width="50" height="50" fill="red" />
47 <circle cx="50" cy="50" r="25" fill="red" />
48 <line x1="50" y1="50" x2="100" y2="100" stroke="red" stroke-width="10" />
49 </g>
50 <g transform="translate(-10,-20)">
51 <g transform="scale(2)">
52 <g transform="rotate(45)">
53 <g transform="translate(5,10)">
54 <rect width="50" height="50" />
55 <circle cx="50" cy="50" r="25" />
56 <line x1="50" y1="50" x2="100" y2="100" stroke="black" stroke-width="10" />
57 </g>
58 </g>
59 </g>
60 </g>
61 <g transform="translate(200)">
62 <g transform="translate(-10,-20)">
63 <g transform="scale(2)">
64 <g transform="rotate(45)">
65 <g transform="translate(5,10)">
66 <rect width="50" height="50" fill="red" />
67 <circle cx="50" cy="50" r="25" fill="red" />
68 <line x1="50" y1="50" x2="100" y2="100" stroke="red" stroke-width="10" />
69 </g>
70 </g>
71 </g>
72 </g>
73 <g transform="translate(-10,-20) scale(2) rotate(45) translate(5,10)">
74 <rect width="50" height="50" />
75 <circle cx="50" cy="50" r="25" />
76 <line x1="50" y1="50" x2="100" y2="100" stroke="black" stroke-width="10" />
77 </g>
78 </g>
79 </g>
80
81 </g>
82 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
83 <text id="revision" x="10" y="340" stroke="none"
84 fill="black">$Revision: 1.4 $</text>
85 </g>
86 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
87 <!-- comment out this watermark once the test is approved
88 <g id="draft-watermark">
89 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
90 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
91 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
92 </g>-->
93 </svg>