Our World In Data (OWID) puts out an incredible number of useful maps and charts. Thousands are already on the Wikimedia Commons. But the OWID SVG files are no longer being updated, because they can no longer be uploaded to the Commons. That is because they contain this:
<style>@import url(https://ourworldindata.org/fonts.css)</style>
Upload attempts get this: "Found unsafe CSS in the style element of uploaded SVG file." But there is no indication what that unsafe CSS is.
You can see for yourself by trying to upload the SVG file found here:
https://ourworldindata.org/grapher/population-density
Click the download icon. Choose SVG. The unsafe CSS (@import) was removed manually before uploading this:
https://commons.wikimedia.org/wiki/File:Population_density_map_of_the_world.svg
That fix alone fixed that particular SVG file because it has a short top caption line.
OWID has a font-family list in its SVG files. So its SVG files look fine on PCs, Macs, Linux, etc., even without the @import fonts. They are just an additional tweak. @import URL is not necessarily dangerous. But Wikimedia does not want to pass on SVG files with possible risks.
Other SVG files from OWID and elsewhere have font substitution problems that only show up after uploading to the Commons. Typically it is text that goes to the edge of the image. The MediaWiki-substituted font will extend past the edge. Per: T64986 (librsvg does not support fallback font set (more than one font family). And: T344564 (Font substitution for SVG file to PNG thumbnail replaces serif with sans-serif font).
The unsafe CSS could be spelled out. And then an option to let MediaWiki remove it, and preview the image.
All SVG images could be previewed regardless of whether they have unsafe CSS. Font substitution problems are common. MediaWiki already points out problems before allowing uploading to continue. This would be another instance of that. To show potential problems. It is a lot easier to stop an upload than to delete a bad image after upload. Commons admins are already overburdened.
Many uploaders don't know how to edit SVG files, and so they will not remove unsafe CSS. Especially since they don't know what to remove. They see a free SVG image somewhere and try to upload it. And they couldn't know of font substitution problems without a preview done by MediaWiki.