Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: LayoutTests/fast/css/object-position-with-fit-cover-expected.html

Issue 24077007: Add support for the object-position CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master again Created 7 years, 3 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/fast/css/object-position-with-fit-cover-expected.html
diff --git a/LayoutTests/fast/css/object-position-with-fit-cover-expected.html b/LayoutTests/fast/css/object-position-with-fit-cover-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..a5c2d7e7ac789be48fc5266aa8de3831243bb8f9
--- /dev/null
+++ b/LayoutTests/fast/css/object-position-with-fit-cover-expected.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <title>object-position on images with object-fit:cover</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:144px; height:72px; }
+
+ .group > *:nth-child(1) > div > * { margin-left:-72px;; }
+ .group > *:nth-child(2) > div > * { }
+ .group > *:nth-child(3) > div > * { margin-left: 10px; }
+ .group > *:nth-child(4) > div > * { margin-left: 300px; }
+ .group > *:nth-child(5) > div > * { margin-left: 300px; }
+ .group > *:nth-child(6) > div > * { margin-left: 18px; margin-top:-10px; }
+ .group > *:nth-child(7) > div > * { margin-left: 300px; }
+ .group > *:nth-child(8) > div > * { margin-left: 300px; }
+ .group > *:nth-child(9) > div > * { margin-left: -72px; }
+ .group > *:nth-child(10) > div > * { margin-left: 300px; }
+ .group > *:nth-child(11) > div > * { margin-left: 30px; margin-top:30px; }
+ .group > *:nth-child(12) > div > * { margin-left: -36px; }
+ </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>
« no previous file with comments | « LayoutTests/fast/css/object-position-with-fit-cover.html ('k') | LayoutTests/fast/css/object-position-with-fit-none.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698