I want to create an SVG that scales to the width of the container without the parts of it resizing or distorting. So depending on the width, the same image might be rendered as any of the following:
As you can see, the left and right parts are (or at least appear to be) part of the same path, and they're the same size and aspect ratio in all cases.
It seems like the capabilities of SVG should allow this, but I don't know how. Obviously no graphics program will do this, so the SVG will need to be hand-crafted.
Possible solutions:
Multiple objects: constructing the shape out of overlapping parts is an option, but risks messy overlap artefacts.
Image swap: I don't want to construct a fixed number of these sizes, because I can't anticipate every possible screen, window or device size. Instead I want an image that scales to whatever the size is.
JavaScript: I'd really prefer to avoid this, as it requires every page or context the SVG is placed in to run a script to fix it.