1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-01 18:46:52 +03:00
Files
svgo/test/plugins/mergeStyles.08.svg
2021-03-27 16:59:56 +03:00

24 lines
728 B
XML

Check whether plugin removes empty <style> elements mixed with non-empty <style> elements
===
<svg id="test" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<style></style>
<style></style>
<style>
.test { color: red; }
</style>
<style></style>
<style></style>
<rect width="100" height="100" class="st0" style="stroke-width:3;margin-top:1em;margin-right:1em;margin-bottom:1em;margin-left:1em"/>
</svg>
@@@
<svg id="test" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<style>
.test { color: red; }
</style>
<rect width="100" height="100" class="st0" style="stroke-width:3;margin-top:1em;margin-right:1em;margin-bottom:1em;margin-left:1em"/>
</svg>