Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / css / cursor-image-replace.svg
blobd6175047436b0280432da3fa2bbbc39da478993e
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400" onload="startup()">
2 <defs id="defs">
3 <cursor id="cursor1" xlink:href="data:image/png;base64,"/>
4 <cursor id="cursor2" xlink:href="data:image/png;base64,"/>
5 </defs>
7 <script>
8 <![CDATA[
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
13 gc = function(){window.GCController.collect()};
14 } else if (!window.gc)
15 gc = function(){};
17 var outer;
18 var inner;
20 function startup() {
21 outer = document.getElementById("outer");
22 inner = document.getElementById("inner");
24 if (location.hash != "#3") {
25 if (location.hash)
26 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toString();
27 else
28 location.hash = "#1";
29 setTimeout(step1, 0);
30 } else {
31 gc();
32 inner.setAttribute('fill', "green");
33 while (inner.firstChild)
34 inner.removeChild(inner.firstChild);
35 inner.appendChild(document.createTextNode("PASS: Successfully changed cursors."));
36 if (window.testRunner)
37 testRunner.notifyDone();
41 function step1() {
42 outer.setAttribute('cursor', "url('#cursor2')");
43 inner.removeAttribute('cursor');
44 setTimeout(step2, 0);
47 function step2() {
48 outer.removeAttribute('cursor');
49 setTimeout(function(){location.reload()}, 0);
53 //]]>
54 </script>
56 <g id="outer">
57 <text x="20" y="20" fill="red" id="inner" cursor="url('#cursor1')">X</text>
58 </g>
59 </svg>