Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / svg / image-size-on-src-change.html
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();
9   }
10   img.src = 'resources/greenSquare.svg';
11 }
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">