Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / images / img-dimensions-styled.html
blobbe82e1987405e8aef57b5265d14d8fb64d52c5a3
1 <!DOCTYPE html>
3 <script src="../../resources/js-test.js"></script>
5 <style>
6 img {
7 width: 200px;
8 height: 200px;
10 </style>
12 <img id="image" src="resources/test-load.jpg" width="100" height="100">
14 <script>
15 description("Should used styled image dimensions if available.");
16 var image = document.getElementById("image");
17 shouldBe("image.width", "200");
18 shouldBe("image.height", "200");
19 var rect = image.getBoundingClientRect();
20 shouldBe("rect.width", "200");
21 shouldBe("rect.height", "200");
22 </script>