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

Re: [css3-values] allowing more whitespace within calc()

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 16 Dec 2009 17:12:52 -0500
To: www-style@w3.org
Message-ID: <20091216221252.GA5622@pickering.dbaron.org>
On Wednesday 2009-12-16 16:30 -0500, L. David Baron wrote:
> I think the simplest way to fix this is to change the single production:
> #  <length-expression> := <length-additive-expression>
> into:
> #  <length-expression> := S* <length-additive-expression> S*
> 
> This would allow whitespace inside the toplevel parentheses of the
> calc() expression, inside inner parentheses within the <length-term>
> production, and also in the <length-min-max> production that I
> proposed in my previous email (with subject "[css3-values] Adding
> min() and max() into calc() grammar").

Actually, this isn't quite sufficient.  I think we also should
change:
#  <number-term> := '(' <number-additive-expression> ')' | <number>
into:
#  <number-term> := '(' S* <number-additive-expression> S* ')' | <number>

-David

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

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