CSS marker-start Property
Description
The marker-start property controls which marker graphic (usually an SVG
Markers applied via marker-start are handled during the painting phase and therefore interact with the element’s stroke and coordinate system rather than the document’s layout. The marker graphic itself is positioned, rotated, and scaled according to the geometry and the marker’s own reference coordinates so that it visually aligns with the path direction; this means the final appearance depends on the path’s direction, the marker definition, and how the marker’s local coordinate system maps onto the painted stroke. Because markers are separate graphical objects, you can design them to pick up contextual styling (for example by referencing the stroke or fill of the marked element) or to be entirely independent, depending on how the marker is authored.
In practice marker-start is commonly used together with marker-mid and marker-end to create consistent decorations along a whole path (start, interior vertices, and end). It also relates to the element’s stroke characteristics — see stroke — and will visually follow transformations applied to the shape, such as those from transform, because markers are positioned and oriented in the transformed coordinate space. Importantly, using marker-start does not change layout or flow; it augments the visual rendering of the graphical element.
Definition
- Initial value
- none
- Applies to
- <circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, and <rect> elements in an svg
- Inherited
- yes
- Computed value
- as specified, but with <url> values made absolute
- Animatable
- yes
- JavaScript syntax
- object.style.markerStart
Syntax
marker-start: none | <uri> [ <orient> ]?;
Values
- none No marker is drawn at the start of the path.
- <uri>A reference to an SVG
<marker>element. The URI typically points to an ID of a marker defined elsewhere in your SVG. - <orient>(optional) – Specifies the orientation of the marker. Possible values:
auto– The marker rotates to match the direction of the path at the start point.<angle>– A specific angle (e.g.,45deg) at which to rotate the marker.
Example
Browser Support
The following information will show you the current browser support for the CSS marker-start property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
