2 <script src=
"../../resources/js-test.js"></script>
4 description("This test ensures that when an image changes, but doesn't change size (like in an Animated GIF), we don't force a Layout.")
7 testRunner
.waitUntilDone();
10 document
.documentElement
.offsetTop
;
11 var imageElement
= document
.getElementById("image");
12 imageElement
.src
= "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAGUExURf8AAAAAAEGjEgMAAAAMSURBVHjaYmAACDAAAAIAAU9tWeEAAAAASUVORK5CYII="
14 shouldBe("window.internals.needsLayoutCount()", "0");
15 if (window
.testRunner
)
16 testRunner
.notifyDone();
19 <body onload=
"runTest();">
20 <div style=
"float: left;">
21 <img id=
"image" style=
"max-width: 100%" src=
"../replaced/resources/1x1-blue.png">