W3C home > Mailing lists > Public > www-style@w3.org > September 2001

Re: Proposal: list-item-color

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 29 Sep 2001 21:19:46 +0200
To: Bert Bos <Bert.Bos@sophia.inria.fr>
Cc: www-style@w3.org
Message-ID: <k16crt42r7jue0nig8n28iqmrrua5rapd2@4ax.com>
* Bert Bos wrote:
>Actually, the way CSS2 does it is by using generated text with a 'display'
>of 'marker'. Such a 'marker' will automatically replace the list-item's
>own marker, like so:
>
>    li {display: list-style}  /* This is already default in HTML */
                  ^^^^^^^^^^ typo: list-item

>    /* Make an explicit counter for li, instead of the implicit one: */
>    li:before {display: marker; counter-increment: li-no}
>    ul li:before {content: counter(li-no, disc)}
>    ol li:before {content: counter(li-no, decimal)}

This should be

     ul > li:before { content: counter(li-no, disc) }
     ol > li:before { content: counter(li-no, decimal) }

I think.

>This is more powerful than 'list-style-color' (a better name than
>'list-item-color' I think), but admittedly harder to write.

Yes, list-style-color is a better name for such a property.

Why didn't CSS Level 2 say, that list item markers are intended to work
just like that and one could simply specify

  li::before { color: red }

or whatever to style the marker?
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Saturday, 29 September 2001 15:20:27 GMT

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