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

Unified Diff: LayoutTests/svg/as-image/svg-as-image-object-fit-cover-expected.html

Issue 1019813002: Use viewBox for SVG image as intrinsic size when all else fails (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated test expectations and added TODOs Created 5 years, 9 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
« no previous file with comments | « LayoutTests/svg/as-image/svg-as-image-object-fit-cover.html ('k') | Source/core/layout/LayoutReplaced.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/as-image/svg-as-image-object-fit-cover-expected.html
diff --git a/LayoutTests/svg/as-image/svg-as-image-object-fit-cover-expected.html b/LayoutTests/svg/as-image/svg-as-image-object-fit-cover-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..f6b505269697a2cef6b707664a9416884ec9dbf5
--- /dev/null
+++ b/LayoutTests/svg/as-image/svg-as-image-object-fit-cover-expected.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>
+ Test for 'object-fit: cover' on SVG image w/ aspect ratio but no
+ intrinsic size
+</title>
+<style type="text/css">
+ img {
+ background: red;
+ width: 160px;
+ height: 100px;
+ }
+</style>
+<img src="data:image/svg+xml,
+ <svg xmlns='http://www.w3.org/2000/svg'>
+ <rect stroke-width='20' stroke='black'
+ x='10' y='-10' width='140' height='140' fill='lime'/>
+ </svg>">
« no previous file with comments | « LayoutTests/svg/as-image/svg-as-image-object-fit-cover.html ('k') | Source/core/layout/LayoutReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698