Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / js-update-image-and-display.svg
blobbd833897854caf4f09fc3eae94946187aef202ba
1 <?xml version="1.0"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="test()">
3 <image id="image" xlink:href="" width="75" height="75" />
4 <script>
5 if (window.testRunner)
6 testRunner.waitUntilDone();
8 function test() {
9 // set
10 document.getElementById("image").setAttributeNS("http://www.w3.org/1999/xlink", "href", "resources/green-checker.png");
11 document.getElementById("image").setAttribute("display", "inherit");
13 // unset
14 document.getElementById("image").setAttributeNS("http://www.w3.org/1999/xlink", "href", "");
15 document.getElementById("image").setAttribute("display", "none");
17 // set
18 document.getElementById("image").setAttributeNS("http://www.w3.org/1999/xlink", "href", "resources/green-checker.png");
19 document.getElementById("image").setAttribute("display", "inherit");
21 if (window.testRunner)
22 testRunner.notifyDone();
25 </script>
26 </svg>