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

Re: Reversing list order

From: Yung-Fong Tang <ftang@netscape.com>
Date: Mon, 17 Mar 2003 14:46:23 -0800
Message-ID: <3E76503F.7080900@netscape.com>
To: Jim Dabell <jim-www-style@jimdabell.com>
CC: www-style@w3.org, Joshua Clinard <webmaster@joshuasplace.net>
Is that true this could be achieve by counter-increment: with -1 in CSS2 
already?

ol { counter-reset: item}
li:before { content: counter(item) ". "; counter-increment: item -1; }
?


Jim Dabell wrote:

>[Originally found on www-html]
>
>On Monday 17 March 2003 5:13 pm, Joshua Clinard wrote:
>  
>
>>Please include an option to specify that items in an ordered list will
>>appear in reverse order in the next working draft. I was thinking that
>>something similar to the following would work well. I am sure others would
>>agree that this is a needed option.
>>    
>>
>
>I agree.  Consider html mail clients, reversing the order of messages would be 
>a one-liner client-side script, instead of a round-trip to the server.  Could 
>this be added to the list module easily?
>
>
>  
>
>>ul { list-order: reverse; }
>>    
>>
>
>I would prefer { list-order: reversed }, although applying it to an <ol> 
>element would be more consistent than applying it to a <ul> element..
>
>
>  
>
ul ??? ul stand for "Unorder List". How can an Unorder List has reverse 
order?
Received on Monday, 17 March 2003 17:48:33 GMT

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