zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.
http://zmoazeni.github.io/csscss/
MIT License
2.92k stars 151 forks source link

Don't know what to do with "@keyframes" #84

Closed davidpaulsson closed 10 years ago

davidpaulsson commented 10 years ago

I got this quite big css file and I though your project would be a good addition to optimize it, but it chokes when it reaches @keyframes in my css. Is there any support for this?

This is what I get when i run it with --show-parser-errors

Had a problem parsing the css at line: 4141, column: 1
Failed to match sequence (SPACE? blocks:((COMMENT / IMPORT / NESTED_RULESET / RULESET){1, }) SPACE?) at line 4141 char 1.
`- Don't know what to do with "@keyframes" at line 4141 char 1.
zmoazeni commented 10 years ago

Yeah that's a bug in the parser. Thank for reporting @davidpaulsson

zmoazeni commented 10 years ago

@davidpaulsson can you paste a snippet with @keyframes that fails? I'm not able to reproduce on my side.