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

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

Powered by Google App Engine
This is Rietveld 408576698