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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-sizes-simple.html

Issue 224733011: A sizes attribute parser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed rebase Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLImageElement/image-sizes-simple.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-sizes-simple.html b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-simple.html
new file mode 100644
index 0000000000000000000000000000000000000000..dc9773f28e154c070de81b42a46886a586292704
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-simple.html
@@ -0,0 +1,14 @@
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ }
+</script>
+</head>
+
+<body id="body">
+ <img id="foo" src="" sizes="(max-width: 300px) 200px, 400px" srcset="resources/image-set-1x.png 200w, resources/image-set-2x.png 400w">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698