<svg xmlns="http://www.w3.org/2000/svg"> | |
<linearGradient id="lg"> | |
<stop stop-color="#008000"/> | |
</linearGradient> | |
<!-- Test that 'fill' on the 'rect' uses the gradient 'lg'. --> | |
<g color="#ff0000" fill="#ff0000"> | |
<rect width="100" height="100" fill="url(#lg) currentColor"/> | |
</g> | |
</svg> |