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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 7 Feb 2011 20:43:59 -0800
Message-ID: <AANLkTimOgAnJrpehfCXS-BY9y9+ed7vB2yqaqTKk1hir@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: "Belov, Charles" <Charles.Belov@sfmta.com>, "www-style@w3.org" <www-style@w3.org>
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 GMT

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