--- bulia byak <buliabyak@...155...> wrote:
I just thought that maybe we can define markers without style and have them inherit style from the objects that reference them. It would be an easy and clean solution. Unfortunately SVG spec explicitly prohibits this:
Properties inherit into the 'marker' element from its ancestors;
properties do not inherit from the element referencing the 'marker' element.
Maybe they had reasons for this, but I still think it's stupid.
What I'd hoped to do was make the default markers styleless, then to xlink:href them from defs with a style applied (ala gradients and the vectors), as they should be able to inherit then (or can they? that was how i read it anyhow) Problem is we dont support xlinked markers atm. and I didnt know where to start adding support for it.
Cheers
John btw, other complication is that some markers are solid filled paths, while others are just stroked, so you have to work out where to apply the style. What you do if the marker refs a gradient I dont know :)
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com