| Index: LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html
|
| diff --git a/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html b/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..164eae7e89cc87ddd88e0cdf4a2f755ef316cfd5
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html
|
| @@ -0,0 +1,27 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script>
|
| + window.targetScaleFactor = 2;
|
| +</script>
|
| +<script src="resources/srcset-helper.js"></script>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script>
|
| + var imgWidth;
|
| + addEventListener("load", function() {
|
| + // FIXME: clientWidth might be zero because of crbug.com/379155
|
| + imgWidth = document.getElementById("foo").clientWidth;
|
| + shouldBeTrue('imgWidth == 33554432 || imgWidth == 0');
|
| + }, false);
|
| +</script>
|
| +</head>
|
| +
|
| +<body id="body">
|
| + <div>
|
| + This test passes if the image is displayed with infinite dimensions.
|
| + Because of a <a href="http://crbug.com/379155">flaky bug</a> with infinite intrinsic dimensions,
|
| + It also accepts zero width.
|
| + </div>
|
| + <img id="foo" srcset="resources/blue-100-px-square.png 0x">
|
| +</body>
|
| +</html>
|
|
|