layout/reftests/image/sync-image-switch-1d.html
author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 31 Oct 2014 14:23:10 +0100
changeset 239819 0c31008f237b1e89ee11db93b30c68f90017b175
parent 93523 0f6ef3a02450fc494a446fb2080558c5503879bf
permissions -rw-r--r--
Merge mozilla-central to mozilla-inbound

<!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.width + "px";
      img.style.height = img.height + "px";
      document.documentElement.className = "";
    }
    var otherImage = new Image;
    otherImage.src = otherImageSrc;
  </script>
</html>