files/en-us/web/svg/reference/attribute/shape-rendering/index.md
The shape-rendering attribute provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
[!NOTE] As a presentation attribute,
shape-renderingalso has a CSS property counterpart: {{cssxref("shape-rendering")}}. When both are specified, the CSS property takes priority.
You can use this attribute with the following SVG elements:
html,
body,
svg {
height: 100%;
}
<svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="100" r="100" shape-rendering="geometricPrecision" />
<circle cx="320" cy="100" r="100" shape-rendering="crispEdges" />
</svg>
{{EmbedLiveSample("Example", "420", "220")}}
auto
optimizeSpeed
crispEdges
geometricPrecision
{{Specifications}}
{{Compat}}