blob: 05ae035d7050d209d5ab04b6d8fef3a6749ce919 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.waitUntilDone();
onload = function() {
var img = document.getElementsByTagName('img')[0];
img.onload = function() {
if (window.testRunner)
testRunner.notifyDone();
}
img.src = 'resources/greenSquare.svg';
}
</script>
<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>
<img style="width: 10%; height: 10%" src="resources/rect-1x1.svg">