W3C home > Mailing lists > Public > www-style@w3.org > February 2014

[css-counter-styles] Behavior of zero in system 'alphabetic' & 'symbolic'

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Sun, 23 Feb 2014 19:12:44 +1100
Message-ID: <CAMdq69-CKuLx28F2ta2KPLCz4xTfJw60=iK5U5htXK0POsxU5g@mail.gmail.com>
To: www-style list <www-style@w3.org>
Hi,

The spec says, 'alphabetic' and 'symbolic' are "defined only over
strictly positive counter values", while they are also
negative-capable. Consequently, if an author defines a style:

@counter-style a { system: symbolic; range: -10 10; symbols: a; }

and use value -2 - 2, then, according to the rules, he will get: -aa,
-a, 0, a, aa. The zero in the middle seems to be strange. I propose
that we could make the defination cover zero, and generate an empty
sequence for zero.

Regards,
Xidorn Quan
Received on Sunday, 23 February 2014 08:13:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC