Index: LayoutTests/fast/css/object-position-with-fit-contain-expected.html |
diff --git a/LayoutTests/fast/css/object-position-with-fit-contain-expected.html b/LayoutTests/fast/css/object-position-with-fit-contain-expected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d7236d7b24dfdcf054a0c4537472811c41f3c44d |
--- /dev/null |
+++ b/LayoutTests/fast/css/object-position-with-fit-contain-expected.html |
@@ -0,0 +1,53 @@ |
+<!DOCTYPE html> |
+ |
+<html> |
+ <head> |
+ <title>object-position on images with object-fit:contain</title> |
+ <style type="text/css"> |
+ .group > div { |
+ display: inline-block; |
+ overflow: hidden; |
+ width: 72px; |
+ height: 72px; |
+ margin: 2px 10px; |
+ border: 1px solid black; |
+ padding: 5px; |
+ background-color: gray; |
+ } |
+ |
+ .group > div > div { overflow: hidden; height:100%; } |
+ .group > div > div > * { display: block; width:72px; height:36px; } |
+ |
+ .group > *:nth-child(1) > div > * { } |
+ .group > *:nth-child(2) > div > * { margin-top: 36px; } |
+ .group > *:nth-child(3) > div > * { margin-left: 10px; margin-top: 45px; } |
+ .group > *:nth-child(4) > div > * { margin-top: 18px; } |
+ .group > *:nth-child(5) > div > * { margin-top: 18px; } |
+ .group > *:nth-child(6) > div > * { margin-top: -10px; } |
+ .group > *:nth-child(7) > div > * { margin-top: 100px; } |
+ .group > *:nth-child(8) > div > * { margin-top: 100px; } |
+ .group > *:nth-child(9) > div > * { margin-top: 100px; } |
+ .group > *:nth-child(10) > div > * { margin-top: 100px; } |
+ .group > *:nth-child(11) > div > * { margin-left: 30px; margin-top: 30px; } |
+ .group > *:nth-child(12) > div > * { margin-top: 18px; } |
+ </style> |
+ </head> |
+ <body> |
+ |
+ <div class="group"> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ <div><div><img src="resources/circles-landscape.png"></div></div> |
+ </div> |
+ |
+ </body> |
+</html> |