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

[css3-values] <positive-integer>

From: Brian Manthos <brianman@microsoft.com>
Date: Tue, 8 May 2012 19:15:05 +0000
To: CSS 3 W3C Group <www-style@w3.org>
Message-ID: <4031779A10373C4AB7B9FBAD218A8BAC02425A6E@CH1PRD0310MB391.namprd03.prod.outlook.com>
On multiple occasions, I've run into spec concerns related to not indicating directly in the grammar that negative values are not allowed.

Shouldn't there be tokens such as <positive-integer> that can be used directly rather than using <integer> and then relying on prose to say zero and negative are invalid?


Something like ...

<positive-integer> = [0-9]+
<negative-integer> = -[0-9]+
<non-negative-integer> = <positive-integer> | 0
<integer> = <non-negative-integer> | <negative-integer>


Similarly for <number>.
Received on Tuesday, 8 May 2012 19:15:47 GMT

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