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

[css3-lists] Negative counter values

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Tue, 06 Dec 2011 14:02:41 +0100
Message-ID: <4EDE1271.8030005@kozea.fr>
To: "www-style@w3.org" <www-style@w3.org>

Section 8 of Lists 3 has an algorithm to "generate a counter 
representation". Step 2 says to use the absolute value for the rest of 
the algorithm, but this is not what we want. For example, with the 
'repeating' type, we want the values -1 and -2 to be represented by the 
last and second-to-last symbols, respectively (assuming two or more 
symbols). Using the absolute value would result in using the first and 
second symbols.

The "absolute value" part of step 2 should be removed and the algorithm 
for some type adapted:

* repeating: the modulo on negative dividends must be consistent with 
the above
* numeric: take the absolute value before the rest of the algorithm
* other types: unchanged.

While we’re at it, it would be good to replace every occurrence of 
"positive" and "negative" (for integer values) by either "strictly 
positive/negative" or "positive/negative or zero".

PS: I write about various issues as I find them. Would it be better 
(less spam-ish for the list or easier for editors) to aggregate them and 
send a single email every now and then?

Simon Sapin
Received on Tuesday, 6 December 2011 13:03:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:08 UTC