I need to reduce the numeric precision, and minimum exponent of SVG attributes to save space.
Input:
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250">
<circle cx="125.1111" cy="125.2222" r="124.9999" fill="red"/>
</svg>
Output:
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250">
<circle cx="125.1" cy="125.2" r="125.0" fill="red"/>
</svg>
What stylesheet will achieve the result?
Any thoughts on the safety of this?
This stylesheet:
Output: