Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / svg / image-size-on-src-change.html
blob05ae035d7050d209d5ab04b6d8fef3a6749ce919
1 <script>
2 if (window.testRunner)
3 testRunner.waitUntilDone();
4 onload = function() {
5 var img = document.getElementsByTagName('img')[0];
6 img.onload = function() {
7 if (window.testRunner)
8 testRunner.notifyDone();
10 img.src = 'resources/greenSquare.svg';
12 </script>
13 <p>Tests sizing of svg when IMG's src changes from one svg to another. Passes if the second svg is sized as if it were loaded at first.</p>
14 <img style="width: 10%; height: 10%" src="resources/rect-1x1.svg">