concept
Paint order — CSS reference
SVG fill, stroke and markers have a default relative paint sequence; paint-order lets authors change that sequence within a graphic. Drawing stroke before fill preserves more of the interior.
Formal Syntax & Structure
css syntaxcss
paint-order: stroke fill markers;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>paint-order</title><style>body{margin:0;background:white}svg{display:block}#a{fill:red;stroke:blue;stroke-width:20;paint-order:stroke fill markers}</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>