W3C home > Mailing lists > Public > www-style@w3.org > January 2014

Ordering in 'animation' shorthands

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 22 Jan 2014 15:46:00 -0800
Message-ID: <CAAWBYDDdyGOiaJQit5NuVegRzryqacQeozp_ZYwxDe54U=k86Q@mail.gmail.com>
To: www-style list <www-style@w3.org>
Issue 3 in Animations talks about the ordering behavior of parsing the
'animation' shorthand.  It implies that values are parsed as the first
type they can match, using the ordering given in the grammar.

Since the very first term in the grammar is <'animation-name'>, which
is a <custom-ident>, this implies that the first keyword, regardless
of what its value is, is always the animation name.

Is this the intention?  Blink doesn't currently do this (though we
have tests that match the spec, which we're currently failing).
Instead, we assign keywords to the other grammar terms if possible.
If a keyword doesn't belong to any other grammar term, we assume it's
the animation name; otherwise, we take the last keywords as the

I haven't tested any other browser, but I think our behavior is
compatible with the spec if we move the <'animation-name'> term to the
end of the grammar.

Received on Wednesday, 22 January 2014 23:46:46 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:36 UTC