OLD | NEW |
(Empty) | |
| 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 shouldBeTrue('imgWidth == 33554432 || imgWidth == 0'); |
| 15 }, false); |
| 16 </script> |
| 17 </head> |
| 18 |
| 19 <body id="body"> |
| 20 <div> |
| 21 This test passes if the image is displayed with infinite dimensions. |
| 22 Because of a <a href="http://crbug.com/379155">flaky bug</a> with infini
te intrinsic dimensions, |
| 23 It also accepts zero width. |
| 24 </div> |
| 25 <img id="foo" srcset="resources/blue-100-px-square.png 0x"> |
| 26 </body> |
| 27 </html> |
OLD | NEW |