Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
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