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

Re: [CSS21][12.5.1 The 'list-style-type' property] decimal-leading-zero clarification

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 30 Nov 2011 11:02:47 -0800
Message-ID: <CAAWBYDCeU7_sM6BSEaNNp7-7+n8O6Mg0y2-XNpt2H+ZKqr8=Uw@mail.gmail.com>
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: www-style@w3.org
On Wed, Nov 30, 2011 at 10:26 AM, Simon Sapin <simon.sapin@kozea.fr> wrote:
> Hi,
>
> The 'decimal-leading-zero' value of 'list-style-type' is defined as:
>
> """
> Decimal numbers padded by initial zeros (e.g., 01, 02, 03, ..., 98, 99).
> """
>
> It is not clear in this definition that only numbers 1 to 9 are padded with
> a single zero whatever the size of the list: lists with 9 items or less are
> still padded to two digits; and no more padding is added when the list
> reaches 100 items or more. The plural in "initial zeros" makes it more
> confusing.
>
> Suggested new definition:
>
> """
> Like 'decimal', but single-digit numbers are padded with an initial zero
> (eg. 01, 02, ..., 09, 10, ..., 99, 100, 101, ...). The representation of
> each marker does not depend on the number of items in the list.
> """

This is being defined in Lists 3.  It matches your definition, that
only the single-digit numbers are padded with zeros.  (It's defined by
a @counter-style rule rather than prose, though.)

~TJ
Received on Wednesday, 30 November 2011 19:03:35 GMT

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