W3C home > Mailing lists > Public > www-style@w3.org > August 2007

Lists' counters inheritance

From: Nikodem <nikn1@gazeta.pl>
Date: Thu, 09 Aug 2007 12:14:22 +0200
Message-ID: <46BAE8FE.6080603@gazeta.pl>
To: www-style@w3.org

Is that possible to automatically create inherited list like here:

	Table of Contents:
	
	<ol>
		<li>Chapter Example	
		<ol>
			<li>Subchapter Example</li>
		</ol>
		</li>
		
		<li>Chapter Example	
		<ol>
			<li>Subchapter Example
			<ul>
				<li>Section of Subchapter Example</li>
			</ul>
			</li>
		</ol>
		</li>
	</ol>

which results:

	Table of Contents:
	I Chapter Example
		I a Subchapter Example
	II Chapter Example
		I a Subchapter Example
			I a • Section of Subchapter Example

?

I know that I can do this:

	ol>li:before{content:counter(first_level);count-increment:first_level}
	ol>li>ol>li:before{content:counter(first_level) counter(second_level)}

etc., but I mean something like that:

	li{list-style-inherit:yes}

-- 
Nikodem
JID: nikn@jabber.org

--
Opole - Miasto Bez Granic.
http://www.opole.pl - tu znajdziesz nowe miejsca, nowe mo¿liwo¶ci, nowe inspiracje...
Received on Thursday, 9 August 2007 10:11:57 GMT

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