| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <title>Test SVG in -webkit-cross-fade image</title> | |
| 3 <style> | |
| 4 div { | |
| 5 display: inline-block; | |
| 6 width: 100px; | |
| 7 height: 100px; | |
| 8 } | |
| 9 #tst1 { | |
| 10 background-image: -webkit-cross-fade( | |
| 11 url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.or
g/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"), | |
| 12 url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.or
g/2000/svg'><circle cx='5' cy='5' r='2.5' fill='red'/></svg>"), | |
| 13 0); | |
| 14 } | |
| 15 #tst2 { | |
| 16 background-image: -webkit-cross-fade( | |
| 17 url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.or
g/2000/svg'><circle cx='5' cy='5' r='2.5' fill='red'/></svg>"), | |
| 18 url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.or
g/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"), | |
| 19 1.0); | |
| 20 } | |
| 21 #tst3 { | |
| 22 background-image: -webkit-cross-fade( | |
| 23 url("resources/green-10.png"), | |
| 24 url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.or
g/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"), | |
| 25 1.0); | |
| 26 } | |
| 27 #tst4 { | |
| 28 background-image: -webkit-cross-fade( | |
| 29 url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.or
g/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"), | |
| 30 url("resources/green-10.png"), | |
| 31 0.0); | |
| 32 } | |
| 33 </style> | |
| 34 <p>There should be four green circles below. | |
| 35 <div id=tst1></div> | |
| 36 <div id=tst2></div> | |
| 37 <div id=tst3></div> | |
| 38 <div id=tst4></div> | |
| OLD | NEW |