W3C home > Mailing lists > Public > www-style@w3.org > August 2010

RE: [css3-values] proposal for handling division and units in calc() [ACTION-205]

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Thu, 12 Aug 2010 17:26:45 +0000
To: "L. David Baron" <dbaron@dbaron.org>
CC: Håkon Wium Lie <howcome@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2779F9B1@TK5EX14MBXC115.redmond.corp.microsoft.com>
> From: L. David Baron [mailto:dbaron@dbaron.org]
> Sent: Wednesday, August 11, 2010 10:34 PM
> To: Sylvain Galineau
> Cc: Håkon Wium Lie; www-style@w3.org
> Subject: Re: [css3-values] proposal for handling division and units in
> calc() [ACTION-205]
> 
> On Thursday 2010-08-12 01:15 +0000, Sylvain Galineau wrote:
> > > From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
> > > Behalf Of L. David Baron
> >
> >
> > >   Note: Except for range restrictions, all values allowed inside an
> > >   expression are either numbers or values that are permitted in the
> > >   context of the expression.
> >
> > If the context of the expression is the padding property then
> negative
> > values, while not allowed as a result of the expression, should still
> > be usable in the expression itself. Or am I misreading this ?
> 
> They'd still be allowed in the expression itself, and if the result
> were outside of the allowed range, the value would be clamped to the
> range (since you can't always tell at parse time whether it's going
> to be in the range).

On a second read, the ambiguity I thought was there is addressed. In this
case, negative numbers in a padding expression are covered by the numbers
part of the clause not by the 'values that are permitted in the context
of the expression'. Sorry for missing that.
Received on Thursday, 12 August 2010 17:27:21 GMT

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