This shows how to use svg <view> elements to define special views inside the svg that can then be referenced.

Note that if the intended display area (aka viewport, in this case defined by the <img> element size) has a different aspect ratio than the svg, then some of the other resources in the spritesheet may become visible.

Here's an example of what can happen if there's a mismatch in aspect ratio, the <img> viewport is indicated by the dotted border: