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

Side by Side Diff: LayoutTests/svg/as-image/svg-as-image-object-fit-cover.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 object-fit: cover;
9 background: red;
10 width: 160px;
11 height: 100px;
12 }
13 </style>
14 <img src="data:image/svg+xml,
15 <svg xmlns='http://www.w3.org/2000/svg'
16 viewBox='0 0 16 16'>
17 <rect stroke-width='2' stroke='black'
18 x='1' y='1' width='14' height='14' fill='lime'/>
19 </svg>">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698