Hi developers
I use a linear gradient in my SVG file:
<linearGradient id="colorgrad">
<stop offset="0%" stop-color="#f00"/>
<stop offset="50%" stop-color="#0f0"/>
<stop offset="100%" stop-color="#00f"/>
</linearGradient>
To apply this gradient to a rectangle is no problem:
<rect width="10" height="10" style="fill:url(#colorgrad);"/>
But if I put the attribute "fill" in a CSS file
grad {fill:url(#colorgrad);}
and apply it as a CSS class to the rectangle, Batik (1.5.1 / 1.6)
returns error messages.
<rect width="10" height="10" class="grad"/>
Is this the correct behavior or is it an error in the Batik implementation?
Thanks for your reply.
Olaf
--
Olaf Schnabel
Department of Cartography
Swiss Federal Institute of Technology (ETH)
ETH Hoenggerberg, CH-8093 Zurich, Switzerland
phone: ++41 44 633 3031
e-mail: [EMAIL PROTECTED]
www: http://www.ika.ethz.ch/schnabel
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/