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

Unified Diff: LayoutTests/fast/css/object-fit-grow-landscape.html

Issue 22482004: Add support for the object-fit CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oops, sorry! Forgot to update UseCounter.cpp Created 7 years, 4 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-fit-grow-landscape.html
diff --git a/LayoutTests/fast/css/object-fit-grow-landscape.html b/LayoutTests/fast/css/object-fit-grow-landscape.html
new file mode 100644
index 0000000000000000000000000000000000000000..946c150718df83a424d8904170fdda942496a82c
--- /dev/null
+++ b/LayoutTests/fast/css/object-fit-grow-landscape.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <title>object-fit, landscape images smaller than content box</title>
+ <style type="text/css">
+ img {
+ display: inline-block;
+ width: 144px;
+ height: 144px;
+ margin: 10px;
+ border: 1px solid black;
+ background-color: gray;
+ }
+ </style>
+ </head>
+ <body>
+
+ <!-- Small images, should be scaled up when allowed. -->
+ <img style="object-fit: fill;" src="resources/circles-landscape-small.png">
+ <img style="object-fit: contain;" src="resources/circles-landscape-small.png">
+ <img style="object-fit: cover;" src="resources/circles-landscape-small.png">
+ <img style="object-fit: none;" src="resources/circles-landscape-small.png">
+ <img style="object-fit: scale-down;" src="resources/circles-landscape-small.png">
+
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698