| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" |
| 3 |
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 4 |
<svg width="7cm" height="2cm" viewBox="0 0 700 200" |
| 5 |
xmlns="http://www.w3.org/2000/svg" version="1.1"> |
| 6 |
<desc>Gradients apply to leaf nodes |
| 7 |
</desc> |
| 8 |
<g> |
| 9 |
<defs> |
| 10 |
<linearGradient id="MyGradient" gradientUnits="objectBoundingBox"> |
| 11 |
<stop offset="0%" stop-color="#F60" /> |
| 12 |
<stop offset="100%" stop-color="#FF6" /> |
| 13 |
</linearGradient> |
| 14 |
</defs> |
| 15 |
<rect x="1" y="1" width="698" height="198" |
| 16 |
fill="none" stroke="blue" stroke-width="2" /> |
| 17 |
<g fill="url(#MyGradient)" > |
| 18 |
<rect x="100" y="50" width="200" height="100"/> |
| 19 |
<rect x="400" y="50" width="200" height="100"/> |
| 20 |
</g> |
| 21 |
</g> |
| 22 |
</svg> |
| 23 |
|