I am trying to create an effect where it appears that a circle of svg shapes are overlapping one another. The issue arises with the last drawn shape, it will overlap both the second to last shape (as desired) but also the first shape, (as you would expect as it was drawn afterwards). I then use a duplicate of the last shape as a clipPath moved slightly to include the stroke of the shape and redraw the section of the first element that has been covered up. If the shapes do not have a transformation (specifically a rotation) applied then this method works, however once a rotation is applied it breaks. It seems that clip-path applies before a transformation.
In this code example it appears correct when first viewed but once a rotation is applied it breaks. It can be fixed by using the redraw option and setting it to -360 | 0 | 360.
https://jsfiddle.net/Scilly_guy/sa1ptdjk/7/
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.