Add tests for @keyframes parsing.

See #1290
Properly check nesting within @at-root.

Closes #1294