tenfourfox/layout/reftests/image/sync-image-switch-1c.html
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

17 lines
494 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<input type="image" src="blue-16x20.png">
<script>
var otherImageSrc = "blue-32x32.png"
window.onload = function() {
var img = document.querySelector("input");
img.src = otherImageSrc;
img.style.width = img.naturalWidth + "px";
img.style.height = img.naturalHeight + "px";
document.documentElement.className = "";
}
var otherImage = new Image;
otherImage.src = otherImageSrc;
</script>
</html>