summaryrefslogtreecommitdiffstats
path: root/layout/reftests/image/sync-image-switch-1d.html
blob: 3001305b0c8672c4f47497ef48387711f5cd0b1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!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>