W3C home > Mailing lists > Public > www-style@w3.org > March 2010

Re: [css3-lists] Proposal: list item marker from the content of the li element

From: Markus Ernst <derernst@gmx.ch>
Date: Wed, 31 Mar 2010 19:16:03 +0200
Cc: www-style@w3.org
Message-ID: <20100331171603.10520@gmx.net>
To: "Anne van Kesteren" <annevk@opera.com>, jackalmage@gmail.com
-------- Original-Nachricht --------
> Datum: Wed, 31 Mar 2010 07:51:27 -0700
> Von: "Anne van Kesteren" <annevk@opera.com>

> I think if we get something like this to work
> 
>    li[marker]::marker { content:attr(marker) }
> 

If I understand this correctly this would require a markup such as:

<li marker="§1">...</li>

I doubt that this solves the legal text use case. I don't know how this is looked at from a technical point of view, but as an author I would not consider an attribute value being part of the text contents. I could have the idea to work around it somehow like:

li[marker]::marker { 
  content:attr(marker);
}
li span.marker {
  display:none;
}

<li marker="§1"><span class="marker">§1 </span>...</li>
-- 
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02
Received on Wednesday, 31 March 2010 17:16:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:25 GMT