Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / hidpi / image-srcset-intrinsic-size-zero.html
blobc16252483a47505b30a4e0298559ee5b539125ff
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.targetScaleFactor = 2;
6 </script>
7 <script src="resources/srcset-helper.js"></script>
8 <script src="../../resources/js-test.js"></script>
9 <script>
10 var imgWidth;
11 addEventListener("load", function() {
12 // FIXME: clientWidth might be zero because of crbug.com/379155
13 imgWidth = document.getElementById("foo").clientWidth;
14 shouldBe('imgWidth', '33554431' /* blink::intMaxForLayoutUnit */);
15 }, false);
16 </script>
17 </head>
19 <body id="body">
20 <div>
21 This test passes if the image is displayed with infinite dimensions.
22 </div>
23 <img id="foo" srcset="resources/blue-100-px-square.png 0x">
24 </body>
25 </html>