1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
3 <svg xmlns=
"http://www.w3.org/2000/svg" width=
"100%" height=
"100%" onload=
"runTest()">
4 <title>Test of the SVGPoint object and .matrixTransform() method
</title>
5 <script type=
"text/ecmascript">
8 var svgPoint = document.rootElement.createSVGPoint();
9 var ctm = document.getElementById(
"test").getScreenCTM();
12 svgPoint = svgPoint.matrixTransform(ctm.inverse());
13 if (svgPoint.x ==
15 && svgPoint.y ==
15) {
14 document.getElementById(
"test").textContent =
"Passed";
19 <text transform=
"scale(2)" x=
"20" y=
"20" id=
"test">Failed
</text>