It turns out CSS interactions won’t work if the img tag is used. Will work if directly inside an SVG tag or iframe. Neither are great solutions.
The problem is the svg tag doesn't have a src attribute that lets me point to the file for its source.
Please Login to reply.
Would need to put the text of the svg file inside the svg tag, which wouldn’t be advised.