This is a self Q&A of a handy piece of code I came up with.
Currently, there isn\'t an easy way to embed an SVG image and then have access to the SVG elements vi
Alternatively you could use CSS mask, granted browser support isn't good but you could use a fallback
mask
.frame { background: blue; -webkit-mask: url(image.svg) center / contain no-repeat; }