[css3-lists] repeating is off by one, negative in predefined styles, wording

Hi,

Four unrelated issues with Lists 3:


The algorithm for `type: repeating` is inconsistent wit the prose:

"""
The first counter symbol is used as the representation of the value 1, 
the second counter symbol (if it exists) is used as the representation 
of the value 2, etc.
[...]
the representation is the counter symbol at index (value mod length) of 
the list of counter symbols (0-indexed).
"""

Index (1 mod length) in a 0-indexed list is the second item, not the 
first. The algorithm should be ((value - 1) mod length) instead.

----

The decimal-leading-zero predefined counter style already gets negative 
signs through the initial value of the 'negative' descriptor. Having it 
in the symbols results in a double minus sign. The definition should be 
changed to:

@counter-style decimal-leading-zero {
	type: non-repeating -9;
	symbols: '09' '08' '07' '06' '05' '04' '03' '02' '01' '00' '01' '02' 
'03' '04' '05' '06' '07' '08' '09';
	/* negative: '-';  (initial value) */
}

----

Predefined repeating styles (disc, circle, square, and others in 
css-counter-styles) already have `suffix: ''`, but the need `negative: 
''` as well.

----

Section 8.2 describes the interaction of the counter-* properties first 
with `display: none` and then with `visibility: hidden`.
Both use "no effect", but with opposite meaning. Though grammatically 
correct, this wording is a bit confusing.

Regards,
-- 
Simon Sapin

Received on Wednesday, 7 December 2011 12:08:04 UTC