[whatwg] Reverse ordered lists

Simon Pieters simonp at opera.com
Wed Jan 9 08:54:23 PST 2008

See: http://forums.whatwg.org/viewtopic.php?t=130

Siemova wrote:
> I recently wanted to create an OL in reverse order. In scouring the web  
> for a solution, I found no simple way to accomplish this, but came  
> across a number of other people frustrated by the lack of this minor  
> feature.
> The easiest, most obvious solution would be to create an attribute for  
> Ordered Lists -- let's call it order="" -- which would have two possible  
> values: ftl (first to last) and ltf (last to first). Very much like the  
> dir property for text, and, similarly, it would default/degrade to the  
> normal first-to-last order.
> The possible applications for this are numerous, of course: count-downs,  
> top n lists, having "most recent" items at the top of a reverse-numbered  
> list, etc. I'm sure anybody can think of times they'd want to do this.  
> It would be particularly helpful for traditional print (newspapers,  
> magazines, etc.) converting their content for internet use. Yes, you can  
> accomplish such things via overloaded tables or CSS hacks, or avoid  
> using an HTML list at all, but my proposal would make this use of lists  
> much more convenient, more standardized, and less likely to break.

(A boolean reverse="" attribute or so would also work, I guess.)

Siemova then kindly provided some useful pointers:

People who are frustrated due to the lack of this feature:


Pages that work around the lack of this feature:


Simon Pieters
Opera Software

More information about the whatwg mailing list