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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html

Issue 1585623003: Support SVG fragment URLs in cross faded images (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Test SVG in -webkit-cross-fade image with identical but differently sized SVG elsewhere</title> 2 <title>Test SVG in -webkit-cross-fade image with identical but differently sized SVG elsewhere</title>
3 <style> 3 <style>
4 #tst1 { 4 #tst1 {
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 background-image: -webkit-cross-fade(url("data:image/svg+xml,<svg viewBo x='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='35 ' fill='green'/></svg>"), url("data:image/svg+xml,<svg viewBox='0 0 100 100' xml ns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='25' fill='red'/></svg >"), 0); 7 background-image: -webkit-cross-fade(
8 url("data:image/svg+xml,<svg viewBox='0 0 100 100' xmlns='http://www .w3.org/2000/svg'><circle cx='50' cy='50' r='35' fill='green'/></svg>"),
9 url("data:image/svg+xml,<svg viewBox='0 0 100 100' xmlns='http://www .w3.org/2000/svg'><circle cx='50' cy='50' r='25' fill='red'/></svg>"),
10 0);
8 } 11 }
9 #tst2 { 12 #tst2 {
10 width: 100px; 13 width: 100px;
11 height: 100px; 14 height: 100px;
12 background-image: -webkit-cross-fade(url("data:image/svg+xml,<svg viewBo x='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='25 ' fill='red'/></svg>"), url("data:image/svg+xml,<svg viewBox='0 0 100 100' xmlns ='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='35' fill='green'/></svg >"), 1); 15 background-image: -webkit-cross-fade(
16 url("data:image/svg+xml,<svg viewBox='0 0 100 100' xmlns='http://www .w3.org/2000/svg'><circle cx='50' cy='50' r='25' fill='red'/></svg>"),
17 url("data:image/svg+xml,<svg viewBox='0 0 100 100' xmlns='http://www .w3.org/2000/svg'><circle cx='50' cy='50' r='35' fill='green'/></svg>"),
18 1);
13 } 19 }
14 #ref { 20 #ref {
15 background-image: url("data:image/svg+xml,<svg viewBox='0 0 100 100' xml ns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='35' fill='green'/></s vg>"); 21 background-image: url("data:image/svg+xml,<svg viewBox='0 0 100 100' xml ns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='35' fill='green'/></s vg>");
16 width: 300px; 22 width: 300px;
17 height: 300px; 23 height: 300px;
18 } 24 }
19 </style> 25 </style>
20 <p>There should be three circle below. One big and two small ones. 26 <p>There should be three circles below. One big and two small ones.
21 <div id=ref></div> 27 <div id=ref></div>
22 <div id=tst1></div> 28 <div id=tst1></div>
23 <div id=tst2></div> 29 <div id=tst2></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698