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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/backgrounds/background-svg-scaling.html

Issue 2203093003: Fix SVGImage::imageForCurrentFrameForContainer() sizing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated canvas-default-object-sizing ref Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <style>
4
5 div {
6 display: inline-block;
7 border-radius: 1px;
8 background-image: url('data:image/svg+xml,\
9 <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 10 10" stroke="green" stroke-width="2">\
10 <line x1="0" y1="0" x2="10" y2="10"/>\
11 <line x1="10" y1="0" x2="0" y2="10"/>\
12 </svg>');
13 }
14 </style>
15
16 <body>
17 <div style="width: 50px; height: 50px; background-size: 100px;"></div>
18 <div style="width: 50px; height: 50px; background-size: 50px;"></div>
19 <div style="width: 50px; height: 50px; background-size: 25px;"></div>
20 <br>
21
22 <div style="width: 100px; height: 100px; background-size: 200px;"></div>
23 <div style="width: 100px; height: 100px; background-size: 100px;"></div>
24 <div style="width: 100px; height: 100px; background-size: 50px;"></div>
25 <br>
26
27 <div style="width: 200px; height: 200px; background-size: 400px;"></div>
28 <div style="width: 200px; height: 200px; background-size: 200px;"></div>
29 <div style="width: 200px; height: 200px; background-size: 100px;"></div>
30 <br>
31
32 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698