-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused <use> elements when deleting empty symbols (issue 1765).
- Loading branch information
1 parent
9078e8c
commit 26a98ea
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
If a container with an id attribute is removed, remove any <use>s associated with the id. | ||
|
||
=== | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100"> | ||
<symbol id="a"> | ||
<path d="M 10 10 H 90" style="stroke:black;stroke-width:2"/> | ||
</symbol> | ||
<symbol id="b"> | ||
<path d="M 10 20 H 90"/> | ||
</symbol> | ||
<symbol id="c"/> | ||
<symbol id="d"/> | ||
<use xlink:href="#a"/> | ||
<use href="#b" style="stroke:red;stroke-width:2"/> | ||
<use xlink:href="#c"/> | ||
<use href="#d" style="stroke:red;stroke-width:2"/> | ||
</svg> | ||
|
||
@@@ | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100"> | ||
<symbol id="a"> | ||
<path d="M 10 10 H 90" style="stroke:black;stroke-width:2"/> | ||
</symbol> | ||
<symbol id="b"> | ||
<path d="M 10 20 H 90"/> | ||
</symbol> | ||
<use xlink:href="#a"/> | ||
<use href="#b" style="stroke:red;stroke-width:2"/> | ||
</svg> |