Atributo marker-end de CSS

Definition and usage

marker-end The attribute points to a marker that will be drawn at the last vertex of the element path.

The shape of the marker is defined by the SVG <marker> element and referenced by the url() value.

CSS marker-end The value of the attribute overrides the value of the marker-end attribute in SVG.

Example

Example 1

Points to a marker (arrow) that will be drawn at the last vertex of the element path:

#test {
  marker-end: url(#arrow);
}

Try it yourself

Example 2

Points to a marker (circle) that will be drawn at the last vertex of the element path:

#test {
  marker-end: url(#circle);
}

Try it yourself

CSS syntax

marker-end: none|url|initial|inherit;

Attribute value

Value Description
none Default value. No marker is drawn at the last vertex of the path.
url The URL reference for the marker defined by the SVG <marker> element.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Browser support

The numbers in the table represent the browser version that first fully supports this property.

Chrome Edge Firefox Safari Opera
80 80 72 13.1 67

Páginas relacionadas

Tutoriales:Marcador SVG

Referencia:Atributo marker de CSS

Referencia:Atributo marker-mid de CSS

Referencia:Atributo marker-start de CSS