CSS marker-end Property
Description
The marker-end property specifies which marker graphic, if any, should be drawn at the endpoint of an SVG geometry — for example the last vertex of a
When a marker is attached via marker-end, the marker element is positioned and oriented relative to the path’s tangent at that final vertex. This means the marker rotates to match the stroke direction at the end point so arrows or tips naturally follow the geometry. The visual result also interacts with the shape’s painting characteristics: the marker’s own fill and stroke interact with the host shape’s styling, and the host’s stroke width and color influence the overall appearance when markers are designed to match the stroke. See also stroke and fill for the paint properties that typically work together with markers.
marker-end is part of a group of marker positioning properties used to place markers at different vertex positions; its counterparts place markers at the start or midpoints of a geometry. Use these complementary properties to create consistent end-to-end decorations or repeating markers along a polyline. For reference to those companion properties, see marker-start and marker-mid. Together they let you treat markers as first-class decorative elements that can convey flow, direction, or semantics within vector graphics.
Because markers are separate SVG elements, they can be authored to scale, rotate, and inherit different parts of the host’s styling independently; this makes them flexible for both static artwork and programmatic graphics where shapes change dynamically. When animating a path or updating its geometry via script, the marker attached by marker-end will move and reorient with the path endpoint without needing separate DOM updates for the marker itself. If you want a concise reference for marker-related grouping or other marker-specific options, see marker.
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.markerEnd
Syntax
marker-end: none | url(#markerID) | inherit;
Values
- none No marker is displayed at the end of the path. This is the default value.
- url(#markerID)References a marker defined in the SVG <defs> section by its ID.
- inheritInherits the value from the parent element.
Example
Browser Support
The following information will show you the current browser support for the CSS marker-end 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
