mirror of
https://github.com/svg/svgo.git
synced 2026-01-25 18:41:39 +03:00
22 lines
584 B
Plaintext
22 lines
584 B
Plaintext
Pseudo-classes that can be evaluated during optimization should not be toggled
|
|
through the usePseudos parameter.
|
|
|
|
See: https://github.com/svg/svgo/commit/72b972261d03f0c40315cd6b9325100d7305a5d6#diff-c625ac4b082b2484280f2d83e11189fc2524e9c21946b4cfab3cc3bf2ab3dcc9R185
|
|
|
|
===
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
<style>
|
|
path:not([fill=blue]) {
|
|
stroke: purple;
|
|
}
|
|
</style>
|
|
<path fill="red" d="M5 5H10"/>
|
|
</svg>
|
|
|
|
@@@
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
<path fill="red" d="M5 5H10" style="stroke:purple"/>
|
|
</svg>
|