Fix #296, don't remove elements with referenced children

This commit is contained in:
Jonathan Neuhauser 2022-09-15 21:40:01 +02:00
parent 0609c59676
commit 544027fa94
3 changed files with 22 additions and 3 deletions

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<clipPath id="unusedclip">
<rect id="the_path" width="100" height="100"/>
</clipPath>
</defs>
<use fill="red" width="100%" height="100%" xlink:href="#the_path"/>
</svg>

After

Width:  |  Height:  |  Size: 343 B