The paint-order property for CSS specifies the order for the three paint operations: fill, stroke and markers.
object.style.paintOrder = "value";
<'paint-order'> = normal | [ fill || stroke || markers ]
normal
Paint order is fill, stroke, markers.
fill
Fill is painted in the order given from left to right. If omitted, it is painted last in normal order.
stroke
Stroke is painted in the order given from left to right. If omitted, it is painted last in normal order.
markers
Markers are painted in the order given from left to right. If omitted, it is painted last in normal order.