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: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 02 May 2011 14:14:59 -0700
Message-ID: <4DBF1ED3.5060308@inkedblade.net>
To: www-style@w3.org
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 GMT

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