Fix #296, don't remove elements with referenced children
This commit is contained in:
parent
0609c59676
commit
544027fa94
3 changed files with 22 additions and 3 deletions
9
unittests/referenced_child.svg
Normal file
9
unittests/referenced_child.svg
Normal 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 |
Loading…
Add table
Add a link
Reference in a new issue