W3C home > Mailing lists > Public > www-style@w3.org > November 2011

Re: [css3-animations] invalid values in keyframes

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 14 Nov 2011 18:35:20 -0800
Message-ID: <CAAWBYDDHpxmb0Lvbf2J9m0To4Ps9pvN7+tJUcmtBtCuW=ZUtCQ@mail.gmail.com>
To: Jennifer Yu <Jennifer.Yu@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Nov 14, 2011 at 6:31 PM, Jennifer Yu <Jennifer.Yu@microsoft.com> wrote:
> What should this animation look like?
>
> @keyframes anim1 {
>                 0% {color: red; left: 10px;}
>                 50% { color: notARealColor; left: 20px; }
>                 100% { color: yellow; left: 90px; }
> }
>
> Should the specified color property value at 50% effectively be ignored as
> if it were not specified? Or should the whole animation of the color
> property be ignored? Or, taking it to a further extreme, should the entire
> animation be ignored?
>
> It seems more natural to just ignore the specified color value. However,
> preventing some of the animation from running would be a clear indicator to
> a web author that there’s a problem with his defined animation.

That would break forward-compatible parsing.  Only the single invalid
declaration should be ignored, so that authors can do the standard
"provide multiple versions of a property" style of fallback.

~TJ
Received on Tuesday, 15 November 2011 02:36:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT