W3C home > Mailing lists > Public > www-svg@w3.org > December 2011

marker fill?

From: jonathan chetwynd <j.chetwynd@btconnect.com>
Date: Thu, 8 Dec 2011 13:14:40 +0000
Message-Id: <A0C4897C-F224-4D97-9B60-DBCBA73612A0@btconnect.com>
Cc: Erik Dahlstrom <ed@opera.com>
To: www-svg@w3.org
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.


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

kind regards



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

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

Jonathan Chetwynd


+44 (0) 20 7978 1764
Received on Thursday, 8 December 2011 13:15:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:27 UTC