W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [css3-lists] Where can the counter() function be used?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 6 Jul 2012 00:26:15 -0700
Message-ID: <CAAWBYDB5=O0TYFhzwnCnxJA-8Y6nGbivoiR8L2YjhoS-OPjYGQ@mail.gmail.com>
To: John Daggett <jdaggett@mozilla.com>
Cc: "www-style@w3.org list" <www-style@w3.org>, Simon Fraser <smfr@me.com>
On Thu, Jul 5, 2012 at 11:59 PM, John Daggett <jdaggett@mozilla.com> wrote:
> Tab Atkins Jr. wrote:
>> > So the question is: where can counter() be used?
>> > http://www.w3.org/TR/css3-lists/ shows it being used in the
>> > content: property, but is that the only place? Should the spec say
>> > what it's applicability is?
>>
>> It should be usable anywhere - it just returns a string based on the
>> value of a counter on that element.  2.1 limited it to 'content',
>> but there are more string-valued properties now and in the future
>> where it may potentially be useful.
>
> Anywhere?  That sounds just plain silly, user agents would need to
> completely revise parsing to handle this.  And for what?

When you can interpret something I say either as me being stupid or as
me just leaving off obvious qualifications, go for the latter.  If
it's the former, I'll make that clear soon enough.  ^_^

I obviously meant "as a component value of any property being applied
to an element".

~TJ
Received on Friday, 6 July 2012 07:27:03 GMT

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