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

Re: [css3-values] calc()'s <number-multiplicative-expression> incorrect

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 23 Dec 2009 17:33:36 -0600
Message-ID: <dd0fbad0912231533k556d24f2md135433e64657bfc@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Shinichiro Hamaji <hamaji@chromium.org>, www-style <www-style@w3.org>
On Wed, Dec 23, 2009 at 10:24 AM, L. David Baron <dbaron@dbaron.org> wrote:
> However, I think if we want the spec to allow division by values,
> it's better not to use the grammar to do the dimension-checking.
> For example, the current grammar allows these:
>  (3em / 100%) * 3em
>  3em / 100% * 3em
>  3em * (3em / 100%)
> but disallows this:
>  3em * 3em / 100%
> which seems very strange.  I would much rather they either be all
> allowed or all disallowed.

Agreed that the current situation is non-sensical, and needs to change.

Your suggested changes seem good at first glance!  I believe they're
what I intuitively *thought* calc() did for handling units.

~TJ
Received on Wednesday, 23 December 2009 23:34:09 GMT

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