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/http/tests/images/image-with-dpr-header.html

Issue 46313002: Support the DPR header for client hints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with cache tests Created 7 years, 2 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/http/tests/images/image-with-dpr-header.html
diff --git a/LayoutTests/http/tests/images/image-with-dpr-header.html b/LayoutTests/http/tests/images/image-with-dpr-header.html
new file mode 100644
index 0000000000000000000000000000000000000000..60ba2e31b177518a9cbfda93766aea6cb5f3a677
--- /dev/null
+++ b/LayoutTests/http/tests/images/image-with-dpr-header.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<body>
+<!-- DPR in header -->
+<img src="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=4.0">
+<!-- DPR in srcset -->
+<img srcset="http://127.0.0.1:8000/resources/square100.png 4x">
+<!-- invalid DPR in header -->
+<img src="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=xx">
+<!-- combine header with srcset -->
+<img srcset="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=xx 4x">
+<img srcset="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=4.0 2x">
+<!-- explicit width also given -->
+<img src="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=4.0"
+ width="100" height="100">
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698