files/en-us/web/css/reference/properties/stroke-linejoin/index.md
The stroke-linejoin CSS property defines the shape to be used at the corners of an SVG element's stroked paths. If present, it overrides the element's {{SVGAttr("stroke-linejoin")}} attribute.
This property applies to any SVG corner-generating shape or text-content element (see {{SVGAttr("stroke-linejoin")}} for a full list), but as an inherited property, it may be applied to elements such as {{SVGElement("g")}} and still have the intended effect on descendant elements'
/* keyword values */
stroke-linejoin: bevel;
stroke-linejoin: miter;
stroke-linejoin: round;
/* Global values */
stroke-linejoin: inherit;
stroke-linejoin: initial;
stroke-linejoin: revert;
stroke-linejoin: revert-layer;
stroke-linejoin: unset;
bevel
miter
round
bevel, and then appending a filled arc tangent in order to round the corner.The following values are defined, but not supported in any browser:
arcs
crop
miter (see above) with a {{CSSxref('stroke-miterlimit')}} value of 1.fallback
crop bevel when the {{CSSxref('stroke-miterlimit')}} value is exceeded.{{CSSInfo}}
{{csssyntax}}
This example demonstrates the three currently supported keyword values for stroke-linejoin.
We set up four identical paths, all of which have a black stroke with a width of one and no fill.
<svg viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg">
<g stroke="black" stroke-width="1" fill="none">
<path d="M2,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" />
<path d="M8,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" />
<path d="M2,11 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" />
<path d="M8,11 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5" />
</g>
</svg>
To each of the four paths, a supported line-joining value is applied. The first is beveled, the second rounded, the third mitered, and the fourth also mitered but with a {{CSSxref('stroke-miterlimit')}} of 2, which forces the corner to be beveled instead of mitered.
path:nth-child(1) {
stroke-linejoin: bevel;
}
path:nth-child(2) {
stroke-linejoin: round;
}
path:nth-child(3) {
stroke-linejoin: miter;
}
path:nth-child(4) {
stroke-linejoin: miter;
stroke-miterlimit: 2;
}
{{EmbedLiveSample("Line-joining styles", "500", "600")}}
{{Specifications}}
{{Compat}}