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

Re: [css3-animations] Times are listed as unitless

From: David Singer <singer@apple.com>
Date: Fri, 06 May 2011 16:43:57 -0700
Cc: Dean Jackson <dino@apple.com>, Sylvain Galineau <sylvaing@microsoft.com>, Simon Fraser <smfr@me.com>, "Eric A. Meyer" <eric@meyerweb.com>, "www-style@w3.org" <www-style@w3.org>
Message-id: <46DCB33F-137D-45FE-BFCE-D0F5D70750A9@apple.com>
To: "L. David Baron" <dbaron@dbaron.org>

On May 6, 2011, at 16:08 , L. David Baron wrote:

> On Friday 2011-05-06 10:26 -0700, David Singer wrote:
>> Are we sure that there are no
>> parsing-depends-on-units-implying-type places in CSS?
> In addition to the gradients issue already pointed out, there's also
> the 'animation' shorthand property, where in addition to an ordering
> rule for animation-duration vs. animation-duration, there needs to
> be a way of determining whether a '0' is for one of those properties
> or is for animation-iteration-count.
> (I'm also not saying that there aren't others.)

Thanks.  One is plenty;  it destroys any confidence that the number of cases is and always will be zero.  This makes general unitless zeroes dangerous and complicates parsing to no useful effect.

We might as well way "when a length is required and the desired length is 0, and there is no ambiguity that the 0 represents a length, it is permissible but not recommended to omit the units; it is safer always to use them, e.g. 0cm" and try to deprecate unitless values.

David Singer
Multimedia and Software Standards, Apple Inc.
Received on Friday, 6 May 2011 23:45:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC