Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html

Issue 305643006: Enable a srcset 0x descriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and unflake the layout test Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698