Helder Magalhães wrote: >> Should this be considered a bug? Shouldn't the CSS property be >> overwritten by setting the presentation attribute? >> I wasn't able to find anything about style method priority in the SVG >> specs but it would seem logical to me that the last set method should >> be the one that's used. > > No, Batik's behavior seems to be the expected according to the specification: > «In general, this means that the presentation attributes have lower > priority than other CSS style rules specified in author style sheets > or style attributes.» [1] > >
Darn, I must have overlooked that statement. > > Hope this helps, > Helder Magalhães > It does indeed, thank you for all the info! [email protected] wrote: > Hi Louis-rémi and Age, > > "louis-rémi BABE" <[email protected]> wrote on 01/06/2009 11:26:32 AM: > >> > Basically kind of like it's >> > possible in JavaScript (element.style.property = ...). I was of the >> > opinion that this was possible in Batik but I can't seem to find out >> > how. >> >> This should be possible using the following syntax: >> >> element.style.setProperty(''opacity", "1", ""); > > I think he want's to do this in Java code so it would > be something like: > > ((org.w3c.dom.svg.SVGStylable)element).getStyle().setProperty("opacity", > "1", ""); > This was exactly what I was looking for, many thanks. I'll give it a go tomorrow. Yours, Age --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
