After further research here is what I found. Please correct me if I am wrong.
Element elt = document.getElementById(id);
SVGOMGElement svgElt = (SVGOMGElement) elt;
CSSStyleDeclaration eltCss = svgElt.getStyle();
eltCss.setProperty("fill", color, "");
It seems to work just fine.
--
View this message in context:
http://batik.2283329.n4.nabble.com/Update-CSS-tp4655378p4655379.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]