OLD | NEW |
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( | 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>"), | 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>"), | 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); | 10 0); |
11 } | 11 } |
12 #tst2 { | 12 #tst2 { |
13 width: 100px; | 13 width: 100px; |
14 height: 100px; | 14 height: 100px; |
15 background-image: -webkit-cross-fade( | 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>"), | 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>"), | 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); | 18 1); |
19 } | 19 } |
20 #ref { | 20 #ref { |
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>"); | 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>"); |
22 width: 300px; | 22 width: 300px; |
23 height: 300px; | 23 height: 300px; |
24 } | 24 } |
25 </style> | 25 </style> |
26 <p>There should be three circles below. One big and two small ones. | 26 <p>There should be three circles below. One big and two small ones. |
27 <div id=ref></div> | 27 <div id=ref></div> |
28 <div id=tst1></div> | 28 <div id=tst1></div> |
29 <div id=tst2></div> | 29 <div id=tst2></div> |
OLD | NEW |