If I remove the drawSVG call from JS, then the green check mark appears on screen because the mask's stroke color is set to "#ffffff". Because the mask is white everything underneath it will be fully visible. I don't want that. Here's the pen:
https://codepen.io/sandalwoodsh/pen/PoKyNga
I want the green check mark to be hidden i.e. not visible. So, I can set the stroke on the mask to "#000000". Now the check mark is hidden because the black mask is hiding everything. That's what I want. Here's the pen:
https://codepen.io/sandalwoodsh/pen/porxbVy
OK, so all I have to do is set the stroke color back to white (stroke: "#ffffff") when I call the drawSVG, but the result isn't what I expect:
https://codepen.io/sandalwoodsh/pen/MWvPeXb
There you go, I think this fully describes the issue I'm running into.