Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1-SE / coords-dom-02-f.svg
blobcd0490346f3f5c94491a7ebfccaa8d6c006ef1e0
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">
15 <p>
16 Tests the liveness of SVGTransform.matrix, that the SVGTransform object is updated when the SVGTransform.matrix object is changed.
17 </p>
18 </d:testDescription>
19 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
20 <p>
21 Run the test. No interaction required.
22 </p>
23 </d:operatorScript>
24 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 The test has passed if:
27 </p>
28 <ul>
29 <li>There is no red visible</li>
30 <li>There is a green ellipse visible</li>
31 </ul>
32 </d:passCriteria>
33 </d:SVGTestCase>
34 <title id="test-title">$RCSfile: coords-dom-02-f.svg,v $</title>
35 <defs>
36 <font-face
37 font-family="SVGFreeSansASCII"
38 unicode-range="U+0-7F">
39 <font-face-src>
40 <font-face-uri xlink:href="../custom/resources/SVGFreeSans.svg#ascii"/>
41 </font-face-src>
42 </font-face>
43 </defs>
44 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
47 <g transform="translate(220 160)">
48 <g id="reference">
49 <circle r="40" fill="red" transform="translate(20 20) scale(2 1)"/>
50 </g>
52 <g id="g" transform="translate(20 20)">
53 <circle id="c" r="40" fill="blue"/>
54 </g>
55 </g>
57 <script type="text/ecmascript"><![CDATA[
58 var passed = false;
60 try
62 var g = document.getElementById("g");
63 var c = document.getElementById("c");
64 var tfm = g.transform.baseVal.getItem(0);
65 var mtx = tfm.matrix;
66 mtx.a = 2;
67 if(tfm.type == SVGTransform.SVG_TRANSFORM_MATRIX)
69 passed = true;
72 catch(e) {}
74 if(passed)
76 c.setAttribute("fill", "lime");
78 else
80 c.setAttribute("fill", "red");
82 ]]></script>
84 </g>
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>
88 </g>
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>
95 </g>-->
96 </svg>