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> |