W3C home > Mailing lists > Public > www-style@w3.org > May 2011

Re: [css3-lists] [css3-speech] Interaction between list-style-type and speak properties

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 2 May 2011 09:14:43 -0700
Message-ID: <BANLkTin4e9SPYGGWC=YtBf=hTjDgNxWyJg@mail.gmail.com>
To: Christoph Päper <christoph.paeper@crissov.de>
Cc: www-style list <www-style@w3.org>
On Sun, May 1, 2011 at 3:53 PM, Christoph Päper
<christoph.paeper@crissov.de> wrote:
> Tab Atkins Jr.:
>> <ol>
>>   <li><span class=marker>A.</span> foo
>>   <li><span class=marker>B.</span> bar
>> </ol>
>>
>> .marker { display: marker; }
>> ol { list-style-type: inline; }
>
> Should this or something like it work, too?
>
>  <ol>
>    <li value="A."> foo
>    <li value="B."> bar
>  </ol>
>
>  li[value]::before {content: attr(value); display: marker; }
>  ol { list-style-type: inline; }

Why would you use that extra level of indirection?  This is the worst
of both worlds - you're explicitly writing each marker in the markup,
but you still need CSS to actually see the marker.

That said, yes, it should work.  There's just no point.  ^_^  (Also,
that's not a valid value for the @value attribute, though CSS doesn't
care.)

~TJ
Received on Monday, 2 May 2011 16:15:32 GMT

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