mirror of
https://github.com/svg/svgo.git
synced 2026-01-25 18:41:39 +03:00
32 lines
956 B
Plaintext
32 lines
956 B
Plaintext
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>
|