1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/test/plugins/inlineStyles.26.svg.txt

33 lines
662 B
Plaintext

Don't remove the class from a wrapper element if it's traversed in another
selector.
===
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 35">
<style>
.a {}
.a .b {
fill: none;
stroke: #000;
}
</style>
<g class="a">
<circle class="b" cx="42.97" cy="24.92" r="1.14"/>
<path class="b" d="M26,31s11.91-1.31,15.86-5.64"/>
</g>
</svg>
@@@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 35">
<style>
.a .b{fill:none;stroke:#000}
</style>
<g class="a">
<circle class="b" cx="42.97" cy="24.92" r="1.14"/>
<path class="b" d="M26,31s11.91-1.31,15.86-5.64"/>
</g>
</svg>