mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
Ignore keyframes in computeStyle
Ref https://github.com/svg/svgo/issues/1408
This commit is contained in:
@ -61,6 +61,9 @@ const parseStylesheet = (css, dynamic) => {
|
||||
return csstree.walk.skip;
|
||||
}
|
||||
if (cssNode.type === 'Atrule') {
|
||||
if (cssNode.name === 'keyframes') {
|
||||
return csstree.walk.skip;
|
||||
}
|
||||
csstree.walk(cssNode, (ruleNode) => {
|
||||
if (ruleNode.type === 'Rule') {
|
||||
rules.push(parseRule(ruleNode, dynamic || true));
|
||||
|
Reference in New Issue
Block a user