Read Drawing inner/outer strokes in SVG (clips and masks) while trying to understand how inner/outer stokes could be recreated in SVG.