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

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 UTC