marker fill?

was it stated whether marker inherits style such as fill from parent such as path**?
in my tests, mozilla requires fill style to be given in the marker, whereas opera and webkit ignore both path and marker fill style.

the assumed default would be that marker inherits from  path, unless alternative provided in marker description.
but this isn't stated afaict, and the example uses black, any other colour might have been more informative.

The spec.description:
The rendering effect of a marker is as if the contents of the referenced ‘marker’ element were deeply cloned into a separate non-exposed DOM tree for each instance of the marker. Because the cloned DOM tree is non-exposed, the SVG DOM does not show the cloned instance of the marker.

For user agents that support Styling with CSS, the conceptual deep cloning of the referenced ‘marker’ element into a non-exposed DOM tree also copies any property values resulting from the CSS cascade ([CSS2], chapter 6) and property inheritance on the referenced element and its contents. CSS2 selectors can be applied to the original (i.e., referenced) elements because they are part of the formal document structure. CSS2 selectors cannot be applied to the (conceptually) cloned DOM tree because its contents are not part of the formal document structure.

 http://www.w3.org/TR/SVG/painting.html#MarkerElement

is - at best - garbled, again an example might help clarify the intention

kind regards

Jonathan

**example:

    <marker id="barb_red"
      refX="0" refY="1.5" 
      markerUnits="strokeWidth"
      markerWidth="4" markerHeight="3"
      orient="auto">
      <path d="M 0 0 4 1.5 0 3 z" fill="#e00" />
    </marker>

<path d="M 230 920 Q350 800 270 670" fill="none" stroke="#e00" stroke-width="14" marker-end="url(#barb_red)"  />

  	
Jonathan Chetwynd

j.chetwynd@btconnect.com
http://www.peepo.com/

+44 (0) 20 7978 1764

Received on Thursday, 8 December 2011 13:15:17 UTC