Note: Version B (which uses a mask) breaks because there is also a rotate transform on each of its elements. Although optimized, the markup shown here is effectively what Sketch exports. The masked version could be corrected if the mask attribute was on the group rather than each element—but regardless, masks are often unnecessary and can make an SVG less reliable.