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

Re: [css3-values] <positive-integer>

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Tue, 08 May 2012 21:56:45 +0200
Message-ID: <4FA97A7D.7010505@kozea.fr>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-style@w3.org
Le 08/05/2012 21:22, Boris Zbarsky a écrit :
> On 5/8/12 3:15 PM, Brian Manthos wrote:
>> >  <positive-integer>  = [0-9]+
>     0*[1-9][0-9]*
>
> Similar for negative-integer.

Apparently the grammar is not obvious to get right. Conversely it takes 
time for a reader to "reverse-engineer" it.

Whether or not it appears in the "Value:" line for properties, I think 
that "positive" and such constraints should be defined in terms of 
numerical comparison, not in character-based grammar.

-- 
Simon Sapin
Received on Tuesday, 8 May 2012 19:57:22 GMT

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