W3C home > Mailing lists > Public > www-style@w3.org > March 2002

Re: OL starting with zero

From: Coises <Randy@coises.com>
Date: Mon, 25 Mar 2002 22:44:30 -0700
To: www-style@w3.org
Message-ID: <rj10augusrsecufsa1vova1cf4pqalfpk4@4ax.com>
[Tue, 26 Mar 2002 00:25:45 +0000 (GMT)] Joachim Noreiko:
>Is there a simple way to set the starting number of an
>ordered list in CSS, an equivalent of the HTML start
>attribute for OL?

Not in CSS1, nor with the "display: list-item" property in CSS2.

>It's possible with "counter", I know, but currently
>few browsers seem to support this.

And apparently even fewer support the "display: marker" property which is
needed to get the default HTML style of list formatting (with the numbers
*outside* the margin of the items) when using generated content.

>Might I suggest an extra list-style-type, say "code"
>which is equivalent to "decimal" but starts with zero? 

The current working draft of the CSS3 Lists module, at:
     http://www.w3.org/TR/2002/WD-css3-lists-20020220
proposes to solve such problems by exposing the "list-item" counter.

Neither the original definition of "display: list-item" in CSS1, nor its
reiteration in CSS2, nor the new specification in the working draft ---
which says it intends to be compatible with the CSS1 usage --- explains how
to determine when the list-item counter gets reset when using only the
"display: list-item" property of CSS1 (without the counter properties of
CSS2-3).  I am a bit doubtful that CSS1 compatibility and intuitive
behavior with an exposed counter can be achieved simultaneously; as far as
I can tell, no one has yet attempted to explain how it will work.
-- 
Randall Joseph Fellmy aka Randy@Coises.com
Received on Tuesday, 26 March 2002 00:44:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:13 GMT