Possible Duplicate:
Include SVG file in SVG
the fill property in SVG accepts an url to point to a gradient/pattern element, an instance of a so-called 'paint server'.
The Question: Is it possible in any browser (that is, not IE, of course), to use a gradient defined in an external SVG file? Like, in rect.svg
,
<rect fill="url(grad.svg#my_grad)" />
and the corresponding <linearGradient />
element in grad.svg
?
It would be really nice, because then one could store all his gradients/patterns in one file and get that cached...
Cheers,
Update: This question is, by its meaning, a duplicate of Include SVG file in SVG (where the question was answered for at least Firefox). I keep mine open, because I think the title and tags are more likely to get found by, well, you.