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

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

From: John Daggett <jdaggett@mozilla.com>
Date: Thu, 5 Jul 2012 23:59:56 -0700 (PDT)
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-style@w3.org list" <www-style@w3.org>, Simon Fraser <smfr@me.com>
Message-ID: <1775716388.3323974.1341557996604.JavaMail.root@mozilla.com>

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?

CSS is not a programming language nor should it be.


John Daggett
Received on Friday, 6 July 2012 07:00:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:18 UTC