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

[css3-transitions] distinguishing duration and delay in 'transition' shorthand

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 15 May 2009 14:20:13 -0700
To: www-style@w3.org
Message-ID: <20090515212013.GA28740@pickering.dbaron.org>
The 'transition' shorthand property is currently defined at
http://dev.w3.org/csswg/css3-transitions/#the-transition-shorthand-property-
using the syntax:

  [<transition-property> || <transition-duration> ||
  <transition-timing-function> || <transition-delay> [,
  [<transition-property> || <transition-duration> ||
  <transition-timing-function> || <transition-delay>]]* 

This provides no way to distinguish between <transition-duration>
and <transition-delay>.  The shorthand needs to have a more rigid
syntax (e.g., an ordering constraint, or an inability to specify one
of the subproperties) than the one given in order to be unambiguous.


While on the topic, it would probably be good if all four properties
defined a grammar production for a single value in the list so that:
 (1) the productions in the above would actually be pointing to
     something, and
 (2) the syntax for the longhand properties could be simplified to,
     e.g., <transition-timing-function> [, <transition-timing-function>]*

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 15 May 2009 21:20:49 GMT

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