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=
"CM" author=
"ED" status=
"accepted"
13 version=
"$Revision: 1.7 $" testname=
"$RCSfile: coords-dom-02-f.svg,v $">
14 <d:testDescription xmlns=
"http://www.w3.org/1999/xhtml" href=
"http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGTransform">
16 Tests the liveness of SVGTransform.matrix, that the SVGTransform object is updated when the SVGTransform.matrix object is changed.
19 <d:operatorScript xmlns=
"http://www.w3.org/1999/xhtml">
21 Run the test. No interaction required.
24 <d:passCriteria xmlns=
"http://www.w3.org/1999/xhtml">
26 The test has passed if:
29 <li>There is no red visible
</li>
30 <li>There is a green ellipse visible
</li>
34 <title id=
"test-title">$RCSfile: coords-dom-
02-f.svg,v $
</title>
37 font-family=
"SVGFreeSansASCII"
38 unicode-range=
"U+0-7F">
40 <font-face-uri xlink:
href=
"../custom/resources/SVGFreeSans.svg#ascii"/>
44 <g id=
"test-body-content" font-family=
"SVGFreeSansASCII,sans-serif" font-size=
"18">
47 <g transform=
"translate(220 160)">
49 <circle r=
"40" fill=
"red" transform=
"translate(20 20) scale(2 1)"/>
52 <g id=
"g" transform=
"translate(20 20)">
53 <circle id=
"c" r=
"40" fill=
"blue"/>
57 <script type=
"text/ecmascript"><![CDATA[
62 var g = document.getElementById(
"g");
63 var c = document.getElementById(
"c");
64 var tfm = g.transform.baseVal.getItem(
0);
67 if(tfm.type == SVGTransform.SVG_TRANSFORM_MATRIX)
76 c.setAttribute(
"fill",
"lime");
80 c.setAttribute(
"fill",
"red");
85 <g font-family=
"SVGFreeSansASCII,sans-serif" font-size=
"32">
86 <text id=
"revision" x=
"10" y=
"340" stroke=
"none"
87 fill=
"black">$Revision:
1.7 $
</text>
89 <rect xml:
id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000"/>
90 <!-- comment out this watermark once the test is approved --><!--
91 <g id="draft-watermark">
92 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
93 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
94 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>