1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-25 18:41:39 +03:00
Files
svgo/test/plugins/removeEmptyContainers.06.svg.txt
2024-02-11 22:14:25 +00:00

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>