« SVG Attribute reference home
The markerUnits
attribute defines the coordinate system for the attributes markerWidth
, markerHeight
and the contents of the <marker>
.
If the markerUnits
attribute is not specified, then the effect is as if a value of strokeWidth
were specified.
Usage context
Categories | None |
---|---|
Value | userSpaceOnUse | strokeWidth |
Animatable | Yes |
Normative document | SVG 1.1 (2nd Edition) |
userSpaceOnUse
markerWidth
,markerHeight
and the contents of the<marker>
represent values in the current user coordinate system in place for the graphic object referencing the marker (i.e., the user coordinate system for the element referencing the<marker>
element via amarker
,marker-start
,marker-mid
ormarker-end
property).strokeWidth
markerWidth
,markerHeight
and the contents of the<marker>
represent values in a coordinate system which has a single unit equal the size in user units of the current stroke width (see thestroke-width
attribute) in place for the graphic object referencing the marker.
Examples
Elements
The following elements can use the markerUnits
attribute: