mirror of
https://github.com/svg/svgo.git
synced 2026-01-27 07:02:06 +03:00
26 lines
992 B
Plaintext
26 lines
992 B
Plaintext
In switch elements, don't remove non-rendering children that contain
|
|
conditional attributes like requiredFeatures, requiredExtensions, or
|
|
systemLanguage.
|
|
|
|
===
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 462 352">
|
|
<switch>
|
|
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
|
|
<a transform="translate(0,-5)" href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
|
|
<text text-anchor="middle" font-size="10px" x="50%" y="100%">Viewer does not support full SVG 1.1</text>
|
|
</a>
|
|
</switch>
|
|
</svg>
|
|
|
|
@@@
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 462 352">
|
|
<switch>
|
|
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
|
|
<a transform="translate(0,-5)" href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
|
|
<text text-anchor="middle" font-size="10px" x="50%" y="100%">Viewer does not support full SVG 1.1</text>
|
|
</a>
|
|
</switch>
|
|
</svg>
|