Affects Version/s: 1.7
Fix Version/s: None
Component/s: SVG DOM
Environment:Operating System: All
I have a bit of code that uses batik at a low level, and sending SVG with the following elements seems to result in the GraphicsNode not painting anything.
changing "opacity" to "fill-opacity" results in the desired behavior when painting. But according to the SVG spec, opacity should be allowed on groups?
Here's now the GraphicsNode is created.
// Parse the SVG document.
SVGDocument doc = new SAXSVGDocumentFactory(XMLResourceDescriptor.getXMLParserClassName()).createSVGDocument(null, data.inputStream());
UserAgent userAgent = new UserAgentAdapter();
BridgeContext ctx = new BridgeContext(userAgent, new DocumentLoader(userAgent));
GraphicsNode node = new GVTBuilder().build(ctx, doc);
Sorry this isn't more detailed - let me know if this isn't enough information.