Re: [css3-animations] Value type of animation names

On Sep 1, 2009, at 4:30 AM, Yuta Kitamura wrote:

> I have found a small error in CSS3 animations spec.
>
> There are several examples in which an animation name is surrounded  
> by single quotes, such as:
>
> @keyframes 'wobble' { ... }
>
> or,
>
> div {
>     animation-name: 'diagonal-slide';
>     ...
> }
>
> However, the definition of animation name does not allow such names,  
> since IDENT does not allow a quoted string:
>
> keyframes-rule: '@keyframes' IDENT '{' keyframes-blocks '}';
> animation-name: none | IDENT [, none | IDENT ]*
>
> I suggest replacing all the occurrences of "IDENT" with "STRING",   
> which only allows a quoted string (by double quotes or single  
> quotes), so that the examples conform to the syntax.

Actually, the examples are wrong. The animation name in the keyframes,  
and in the property value should be an IDENT.

Simon

Received on Wednesday, 2 September 2009 16:12:59 UTC