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

On Mon, Feb 7, 2011 at 5:18 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> On Feb 7, 2011, at 3:35 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>
>> Yeah, you'll be able to say something like:
>>
>> @counter-style dice {
>>  type: alphabetic;
>>  range: 1 infinity;
>>  glyphs: url(die1), url(die2), url(die3), url(die4), url(die5), url(die6);
>> }
>> ol {
>>  list-style-type: dice;
>> }
>>
>> ...and get all your <ol>s displayed with dice-based graphics, so (7)
>> would be two dice showing a 6 and 1, etc.
>
> Shouldn't that be '@counter-style $dice' and 'list-style-type: $dice' (or something similar), in order to avoid collisions with other (possible future) list-style-types?

Nope, basically all counter styles* are moving over to be defined as
@counter-style rules in the UA stylesheet and are overrideable, so we
can introduce new ones in the future without worrying about name
collisions.  (The author's version will win, so old pages are
unharmed.)

* Except hebrew, ethiopian-numeric, and maybe tamil.  They're still
overrideable, though.

~TJ

Received on Tuesday, 8 February 2011 04:44:51 UTC