Note that the workaround goes only so far (for example, if the svg has a white background, the canvas will be hidden behind). (Since it's a deeply entrenched bug, we can suppose it's not going to be fixed anytime soon… too bad!)
No, I'm thankful that you've pointed it out again. This demo could be called misleading, because it suffers from the same bug, and due to the blur it's hardly noticable.
> Note that the workaround goes only so far
Yes, it's kind of a shitty example if it demonstrates a technique that won't work in the browser with the biggest marketshare.
@fil I've made some changes, and now I'm no longer seeing the bug. Could you check again, and if you're still seeing the bug, could you tell me your browser version?
It's hard to tell which is which especially with the movement :) but I set the stroke as green 100px below and red above, and it seems to work correctly. How did you manage to solve it??
My best guess is some element namespace issues. Note that I'm now creating the complete SVG in one go. Also, the closing canvas tag is absolutely essential, otherwise following elements won't render at all.