Index: LayoutTests/fast/css/object-fit-object.html |
diff --git a/LayoutTests/fast/css/object-fit-object.html b/LayoutTests/fast/css/object-fit-object.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c69bab36e8220d28efa75900a306dc2e32d174c6 |
--- /dev/null |
+++ b/LayoutTests/fast/css/object-fit-object.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE html> |
+ |
+<html> |
+ <head> |
+ <title>object-fit on objects</title> |
+ <style type="text/css"> |
+ img, embed, object, input, canvas, video { |
+ width: 72px; |
+ height: 72px; |
+ margin: 2px 10px; |
+ border: 1px solid black; |
+ background-color: gray; |
+ } |
+ |
+ .group { object-fit: contain; } |
+ .group > *:nth-child(1) { object-fit: fill; } |
+ .group > *:nth-child(2) { object-fit: contain; } |
+ .group > *:nth-child(3) { object-fit: cover; } |
+ .group > *:nth-child(4) { object-fit: none; } |
+ .group > *:nth-child(5) { object-fit: scale-down; } |
+ .group > *:nth-child(6) { object-fit: inherit; } |
+ .group > *:nth-child(7) { } |
+ </style> |
+ </head> |
+ <body> |
+ |
+ <div class="group"> |
+ <object data="resources/circles-landscape.png"></object> |
+ <object data="resources/circles-landscape.png"></object> |
+ <object data="resources/circles-landscape.png"></object> |
+ <object data="resources/circles-landscape.png"></object> |
+ <object data="resources/circles-landscape.png"></object> |
+ <object data="resources/circles-landscape.png"></object> |
+ <object data="resources/circles-landscape.png"></object> |
+ </div> |
+ |
+ </body> |
+</html> |