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

Re: [css3-animations] !important in animations rule - clarification

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 13 Jan 2012 14:37:04 -0800
Message-ID: <CAAWBYDBasayVGcLvqhT-2UGnPw0n0JJ+=j6tjJE-bBRQroegxA@mail.gmail.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Fri, Jan 13, 2012 at 12:46 PM, Sylvain Galineau
<sylvaing@microsoft.com> wrote:
> This is to clarify the following 01/04 telcon resolution [1]:
>
> - RESOLVED: Don't allow !important in animations rules - it's a syntax error.
>
> My assumption is that the following:
>
>        @keyframes slider {
>              from {
>                width:0px;
>              }
>        to {
>                width:200px !important;
>              }
>        }
>
> ...would be equivalent to:
>
>        @keyframes slider {
>              from {
>                width:0px;
>              }
>        to {}
>        }
>
> i.e. the !important results in an invalid width value and the declaration has no effect.
>
> Or did we have something else in mind e.g. the entire animation is invalid?

Your assumption is correct - it's the same behavior as every other syntax error.

~TJ
Received on Friday, 13 January 2012 22:37:59 GMT

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