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

Side by Side Diff: LayoutTests/svg/as-image/svg-as-image-object-fit-contain-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, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>
3 Test for 'object-fit: cover' on SVG image w/ aspect ratio but no
4 intrinsic size
5 </title>
6 <style type="text/css">
7 img {
8 width: 160px;
9 height: 80px;
10 }
11 </style>
12 <img src="data:image/svg+xml,
13 <svg viewBox='0 0 160 80' xmlns='http://www.w3.org/2000/svg'>
14 <rect stroke-width='10' stroke='black'
15 x='45' y='5' width='70' height='70' fill='lime'/>
16 </svg>">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698