Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-width-height-attributes-without-renderer-loaded-image.html
blob9d975763f2eccdd0129000bf5c985dca2119fbfe
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 jsTestIsAsync = true;
6 </script>
7 </head>
8 <body>
9 <input type="image" id="imageElement" src="resources/green.jpg">
10 <div id="console"></div>
11 <script language="JavaScript">
12 document.onreadystatechange = function() {
13 readyState = document.readyState;
14 if (readyState == 'complete') {
15 e = document.getElementById("imageElement");
16 e.style = "display:none";
17 shouldBe('e.width', '16');
18 shouldBe('e.height', '16');
19 finishJSTest();
22 </script>
23 </body>
24 </html>