- 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
* 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 UTC