[whatwg] Reverse ordered lists

Simon Pieters wrote:
> 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).

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

How about a step attribute that is allowed to be negative?

That way:

<ol step="-1">
<li>A</li>
<li>B</li>
</ol>

would be:
2. A
1. B

and step="2" would be:
2. A
4. B

Robert (Jamie) Munro

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080110/e4929e2b/attachment.pgp>

Received on Thursday, 10 January 2008 05:57:32 UTC