Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / svg / image-base-within-aboutblank-iframe.html
blob2560d5f332ce453ec6b52236dc238fb0f6b20c83
1 <!DOCTYPE html>
2 <style>
3 iframe {
4 border: none;
6 body, iframe {
7 margin: 0;
8 padding: 0;
10 </style>
11 <script>
12 if (window.testRunner)
13 testRunner.waitUntilDone();
15 function finishTest() {
16 if (window.testRunner)
17 testRunner.notifyDone();
19 </script>
20 <iframe></iframe>
21 <script>
22 var iframe = document.querySelector('iframe');
23 iframe.contentWindow.finishTest = finishTest;
24 iframe.contentDocument.body.innerHTML =
25 '<style>body { margin: 0; padding: 0; }</style>'+
26 '<svg width="100" height="100">'+
27 '<image width="100" height="100" xlink:href="//localhost:8000/resources/square100.png" onload="finishTest()"></image>'+
28 '</svg>';
29 </script>