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

Re: [css3-animations] !important and keyframes rules

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Mon, 26 Sep 2011 16:32:06 +0200
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
Message-ID: <op.v2e6nsl3bunlto@oyvinds-desktop>
On Tue, 12 Apr 2011 06:18:42 +0200, L. David Baron <dbaron@dbaron.org>  
wrote:

> http://dev.w3.org/csswg/css3-animations/#keyframes doesn't mention
> what should happen when !important is used inside a keyframe rule.
> It seems like the normal rules for precedence of declarations should
> apply inside a keyframe rule:  !important beats not-!important, and
> barring that, later declarations beat earlier ones.

Interestingly, it seems both WebKit and Gecko treat @keyframes and  
@font-face differently regarding !important. As far as I can tell WebKit  
only honors it in @font-face and Gecko only in @keyframes.

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Monday, 26 September 2011 14:32:42 GMT

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