Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / images / image-change-without-resize-shouldnt-layout.html
blob015cae4fc34ba65e5911026144ae9bf0699e4b3f
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <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.")
6 if (window.testRunner)
7 testRunner.waitUntilDone();
9 function runTest() {
10 document.documentElement.offsetTop;
11 var imageElement = document.getElementById("image");
12 imageElement.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAGUExURf8AAAAAAEGjEgMAAAAMSURBVHjaYmAACDAAAAIAAU9tWeEAAAAASUVORK5CYII="
13 if (window.internals)
14 shouldBe("window.internals.needsLayoutCount()", "0");
15 if (window.testRunner)
16 testRunner.notifyDone();
18 </script>
19 <body onload="runTest();">
20 <div style="float: left;">
21 <img id="image" style="max-width: 100%" src="../replaced/resources/1x1-blue.png">
22 </div>