Due to SVG’s inadequate layout capabilities, developers often have to layout the contents of things like infographics in script, using libraries like D3. When the dimensions of the host SVG element changes, it is necessary to redraw the contents to fit, but the SVGResize event only fires when the resize is triggered by the document, rather than something like a parent flexbox or a change to a width/height specified via CSS.
When the size of an SVG element is being controlled externally, it should be possible to detect changes regardless of the cause.