W3C home > Mailing lists > Public > www-style@w3.org > December 2009

[css3-animations] are "invalid" keyframe rules dropped?

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 17 Dec 2009 14:17:12 -0500
To: www-style@w3.org
Message-ID: <20091217191712.GA20402@pickering.dbaron.org>
http://dev.w3.org/csswg/css3-animations/#keyframes- says:
  # Every keyframe declaration must have a keyframe rule for 0% or
  # 100%, possibly defined using "from" or "to". A keyframe
  # declaration without these keyframe selectors is invalid and will
  # not be available for animation.

Two paragraphs later, it says:
  # The @keyframes rule that is used by an animation will be the
  # last one encountered in sorted rules order that matches the name
  # of the animation. @keyframes rules do not cascade; therefore an
  # animation will never derive keyframes from more than one
  # @keyframes rule.

It's not clear to me how these two statements interact.

In particular, if there is a valid @keyframes rule followed by an
invalid (by the above definition regarding lacking 0% or 100%) one,
both with the same name, does an animation with that
'animation-name' use the first @keyframes rule or does it fail to
animate?

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 17 December 2009 19:17:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:47:12 GMT