shape-rendering

An SVG-specific property that tells the browser how to render shapes. You can prioritize speed over quality, or ensure that lines and edges look perfectly crisp on modern screens.

It is documented as part of the Scalable Vector Graphics specification.

/* Usage Example */
svg {
  /* Ensures that crisp straight lines don't look blurry on low-res screens */
  shape-rendering: crispEdges;
}

/* Syntax */
shape-rendering: auto;
shape-rendering: optimizeSpeed;
shape-rendering: crispEdges;
shape-rendering: geometricPrecision;

/* Global values */
shape-rendering: inherit;
shape-rendering: initial;
shape-rendering: revert;
shape-rendering: revert-layer;
shape-rendering: unset;
Widely available Since 2020 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.

1+
3+
4+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC