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

Side by Side Diff: LayoutTests/fast/hidpi/image-srcset-invalid-inputs-except-one.html

Issue 23861003: Enable srcset support in HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Enable srcset support in HTMLImageElement Created 7 years, 3 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../js/resources/js-test-pre.js"></script>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 }
8
9 addEventListener("load", function() {
10 shouldBeTrue('document.getElementById("foo").clientWidth==200');
11 }, false);
12 </script>
13 </head>
14
15 <body id="body">
16 <div>This test passes if the img tag below is a green square regardless of t he scale factor. It ensures that invalid inputs are
17 ignored and well-formed images are chosen regardless of their qualifiers, on ce they are the only candidate left</div>
18 <img id="foo" src="" srcset="1x,, , x , resources/green-200-px-square. png 2x, 2">
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698