Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-href-change-local-to-invalid-remote.html
blob838c0b185b281a6d2c8f05c5bd64ee366bac5c6e
1 <!DOCTYPE html>
2 <svg>
3 <rect width="100" height="100" fill="green"/>
4 <defs>
5 <rect id="a" width="100" height="100" fill="red"/>
6 </defs>
7 <use xlink:href="#a"/>
8 </svg>
9 <script>
10 onload = function() {
11 var use = document.querySelector('use');
12 use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'invalid-remote.svg');
13 document.getElementById('a').setAttribute('width', 200);
14 use.setAttribute('width', 100);
16 </script>