Feature summary (what you would like to be able to do and where):
I would like to be able to upload a kind of file which represented a CSS patch applied to an existing SVG.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
Commons has thousands of locator maps. Here's an example (https://commons.wikimedia.org/wiki/File:Anglesey_in_Wales.svg):
It shows Wales, broken down into unitary authorities, with one authority (Anglesey) drawn in red and the others in cream. Each of the other authorities has another similar map. Every other country in the world, and many and various regions, have similar sets of maps.
It should be possible to produce the same effect by uploading a file containing only
- link to existing SVG
- CSS block
- optional metadata
such as
<css-patch target="Some hypothetical map of Wales.svg">
<style>
#anglesey { color: #700; }
</style>
</css-patch>the result of which would be to render the given SVG with the given style block included.
Benefits (why should this be implemented?):
Saves vast amounts of redundancy, and thus avoids denormalisation.. At present, every time there's a border change, all the locator maps have to be redrawn.
I think I could implement this, but first I want to ask whether it's a good idea.
