Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-crash-pending-resource.svg
blob01143431442e7b2cacb6b1c7230f431f9fc80f5d
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <defs>
3 <text id="text1" font-size="20" fill="yellow">PASS</text>
4 </defs>
6 <!-- Don't crash when setting the href attribute while a filter resource is pending. -->
7 <use id="crasher" xlink:href="foo" filter="url(#nosuchfilter)"/>
9 <!-- Test both updating the href attribute and picking up the pending filter. -->
10 <use id="text_use" y="20" xlink:href="#foo" filter="url(#filter2)"/>
12 <filter id="filter2">
13 <!-- Green filter -->
14 <feColorMatrix type="matrix" values="0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
15 </filter>
17 <script>
18 <!-- Should not crash. -->
19 document.getElementById("crasher").setAttribute("xlink:href", "bar");
21 <!-- Should yield the filtered text -->
22 document.getElementById("text_use").setAttribute("xlink:href", "#text1");
24 if (window.testRunner)
25 testRunner.dumpAsText();
26 </script>
27 </svg>