Auto marker color matching - The SVG 2 way.
Hi,
I have implemented the SVG 2 'fill' and 'stroke' property values 'context-fill' and 'context-stroke' in trunk. These property values allow the automatic matching of marker fill to path stroke. They also allow cloned objects to reference the fill and stroke values from the <use> element. Only solid color fill and stroke values are handled at the moment. I added one marker that uses 'context-stroke' (as well as 'auto-start-reverse' which eliminates the need for separate arrow markers for the start and end of a path) to marker.svg (at the end) so people can try it out. At this stage, this should be viewed as an experimental implementation. The SVG WG hasn't finalized this part of the spec and there is work needed to provide an SVG 1.1 export mechanism for use until the browsers implement this.
I wrote a blog as I was doing this work. It might be interesting to other developers who are struggling with our code:
http://tavmjong.free.fr/blog/?p=1156
Tav
participants (1)
-
Tavmjong Bah