W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Re: [css-counter-styles] allow use of CSS4 "alt" property with @counter-style/symbols

From: James Craig <jcraig@apple.com>
Date: Thu, 22 May 2014 03:23:53 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-id: <4B615DC1-27F0-4BF6-ACBC-6E3495A1D219@apple.com>
To: Reece Dunn <msclrhd@googlemail.com>

On May 22, 2014, at 2:58 AM, Reece Dunn <msclrhd@googlemail.com> wrote:

> I like this use of lang() as it allows the user to focus
> pronunciation. However, I like speak-as pointing to a counter-style as
> that offfers the most flexibility (speak these as a number, etc.).
> 
> So your example would be:
> 
>>  ul.io { counter-style: io; }
>> 
>>  @counter-style io {
>>    system: cyclic;
>>    symbols: '⋗' '⋖';
>>    speak-as: io-spoken;
>>  }
>>  @counter-style io-spoken { system: cyclic; symbols: 'Input: ' 'Output: '; }
>>  @counter-style io-spoken:lang(es) { symbols: 'Entrada: ' 'Salida: '; }
>>  @counter-style io-spoken:lang(de) { symbols: 'Eingang: ' 'Ausgang: '; }

I don't understand the benefit this has over alt. I see "alt" as a one-to-one mapping for "symbols". Presumably these "-spoken" counters will always match the system property (cyclic here) of the symbolic counter-style, no? When would that not be the case? 

James
Received on Thursday, 22 May 2014 10:24:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC