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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 9 May 2011 12:06:09 -0700
Message-ID: <BANLkTinYisJWgaAY2kQEFN0ns5ykq9dVJQ@mail.gmail.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: David Singer <singer@apple.com>, "www-style@w3.org" <www-style@w3.org>
On Fri, May 6, 2011 at 10:31 AM, Sylvain Galineau
<sylvaing@microsoft.com> wrote:
> Not sure this is what you're looking for but gradients need angles to
> have a unit for all values including 0. See http://lists.w3.org/Archives/Public/www-style/2009Nov/0043.html.

Gradients no longer have this requirement, for what it's worth, due to
unrelated simplifications to the syntax of both types of gradients.

That said, I'm still definitely on the side that unitless zeros should
always mean a length, and that all other units must be explicitly
written even on 0.  As already stated, the 'animation' shorthand
requires a unit on zero times to avoid ambiguity, and some properties
like 'height' require a unit on zero percentages as they have a
different behavior in some circumstances from zero lengths.

Received on Monday, 9 May 2011 19:06:57 UTC

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