W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: 3.11 Lists Review Comments (ol/@start, li/@value)

From: Thomas Broyer <t.broyer@gmail.com>
Date: Wed, 18 Jul 2007 00:41:59 +0200
Message-ID: <a9699fd20707171541v400652fem2aef0f828c92e9c@mail.gmail.com>
To: public-html@w3.org

2007/7/18, Robert Burns:
>
> It would be ideal if CSS counters could pick up on the HTML attribute
> values to generate numbered list markers.

It will be possible with CSS3:
    ol li[value] { counter-reset: list-item attr(value, integer); }

See:
http://www.w3.org/TR/css3-values/#attribute (you can use the attr()
function everywhere)
http://www.w3.org/TR/css3-content/#normal1 (uses a counter named
list-item for lists)

-- 
Thomas Broyer
Received on Tuesday, 17 July 2007 22:42:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT