property

Shape rendering — CSS reference

Hints that the renderer should prioritize sharp edges over smoothness for shapes. It may change antialiasing or alignment; it is not a guarantee of identical raster output across engines.

Formal Syntax & Structure

css syntaxcss
shape-rendering: crispEdges;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>shape-rendering</title><style>body{margin:0;background:white}svg{display:block}#a{shape-rendering:crispEdges}</style><body><svg xmlns="http://www.w3.org/2000/svg" width="240" height="160" viewBox="0 0 240 160" role="img" aria-label="SVG styling example"><rect id="a" x="40" y="40" width="100" height="80"/></svg></body></html>
CSS Reference