Index: LayoutTests/svg/as-image/svg-as-image-object-fit-contain.html |
diff --git a/LayoutTests/svg/as-image/svg-as-image-object-fit-contain.html b/LayoutTests/svg/as-image/svg-as-image-object-fit-contain.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..18691dd458cb21e40f6da6ee5b3c1aefff49754d |
--- /dev/null |
+++ b/LayoutTests/svg/as-image/svg-as-image-object-fit-contain.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<title> |
+ Test for 'object-fit: contain' on SVG image w/ aspect ratio but no |
+ intrinsic size |
+</title> |
+<style type="text/css"> |
+ img { |
+ object-fit: contain; |
+ width: 160px; |
+ height: 80px; |
+ } |
+</style> |
+<img src="data:image/svg+xml, |
+ <svg xmlns='http://www.w3.org/2000/svg' |
+ viewBox='0 0 16 16'> |
+ <rect stroke-width='2' stroke='black' |
+ x='1' y='1' width='14' height='14' fill='lime'/> |
+ </svg>"> |