This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Chrome currently says yes. While I recall that error recovery rules now allow what comes after a nested at-rule to be parsed, I'm not sure whether Chrome's behavior is conformant, or should be.
I suspect css-mediaqueries and/or css-conditionals would define this.
Whether @keyframes is valid inside another construct is really up to the module defining that construct. css3-animations should not define what is valid/invalid inside @media.