Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / SVGPoint-matrixTransform.svg
blob7b67b49b46122c97eadca099ff3c45cd9cfc034a
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">
6 <![CDATA[
7 function runTest() {
8 var svgPoint = document.rootElement.createSVGPoint();
9 var ctm = document.getElementById("test").getScreenCTM();
10 svgPoint.x = 30;
11 svgPoint.y = 30;
12 svgPoint = svgPoint.matrixTransform(ctm.inverse());
13 if (svgPoint.x == 15 && svgPoint.y == 15) {
14 document.getElementById("test").textContent = "Passed";
17 ]]>
18 </script>
19 <text transform="scale(2)" x="20" y="20" id="test">Failed</text>
20 </svg>