Previous Message
Next Message

Re: CSS list numbering - non-contiguous lists in XHTM L 1.1

Sent by Philippe Wittenbergh on 25 May 2005 06:06


On 25 May 2005, at 12:42 am, David Balch wrote:

>> From: David Dorward [EMAIL-REMOVED]]
>> CSS 2, look up the "counter" property. Browser support is
>> rubbish though.
>
> As far as I've read, there's no way to continue numbering over 
> separate ol
> elements - are you aware of a way to use "counter" to enable this?
>
> Perhaps the <identifier> of counter [COUNT] refer to a class on the ol
> element (via an Attribute selectors [ATTRIB]) - whereby all ol 
> elements with
> the same class use the same counter. Can attribute selectors be used as
> identifiers?
>
> [COUNT] http://www.w3.org/TR/CSS21/syndata.html#counter
> [ATTRIB] http://www.w3.org/TR/CSS21/selector.html#attribute-selectors

Support for 'counter' is indeed pretty poor: Opera 8 and Gecko nightly 
builds.

Note that what is specified in the current CSS 2.1 CR. is apparently 
outdated. Gecko's implementation follows a not yet released draft for a 
new CSS 2.1 CR.
See the Bugzilla entry that fixes 'counters' in Gecko:
<https://bugzilla.mozilla.org/show_bug.cgi?id=3247>
and the test case
<http://dbaron.org/css/test/sec1202>
It might do what you're after... ;-)

Philippe
---/---
Philippe Wittenbergh
<http://emps.l-c-n.com/>

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: