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

On 05/02/2011 01:15 PM, Tab Atkins Jr. wrote:
>
> If the marker doesn't have to be part of the content, just do this:
>
> <ol>
>   <li>foo
>   <li>bar
> </ol>
> <style>
> ol { list-style: upper-alpha; list-style: my-counter; }
> </style>
>
> This is similarly robust.  In the case of CSS failure, the<ol>  will
> render as 'decimal' (the default).  In the case of non-supporting
> browsers, it'll get upper-alpha, which I'm assuming is the closest 2.1
> equivalent to your style.  In supporting browsers, you get exactly
> what you want.

Actually, you probably want <ol type="A">, which is safe against CSS
failure.
   http://www.w3.org/TR/html5/grouping-content.html#attr-ol-type

~fantasai

Received on Monday, 2 May 2011 21:15:31 UTC