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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 09 Jul 2012 10:24:45 -0400
Message-ID: <4FFAE9AD.3050809@mit.edu>
To: www-style@w3.org
On 7/9/12 3:16 AM, Tab Atkins Jr. wrote:
> One way this could be solved would be to allow math on counter values
> (which are just integers), such as allowing the counter() function
> inside of calc().  Then you could write your use-case as:
>
> animation-delay: calc(counter(delay-timer) * 1s);

I must be missing something.

Counter values depend on whether boxes are present or not, no?

It seems pretty odd to me to require that values of some properties 
depend on whether some completely unrelated boxes far away in the DOM 
are present.  It might also be somewhat difficult to implement correctly 
in the face of dynamic changes.

-Boris

P.S.  Note that "boxes are present" does not actually map directly to 
computed display values, by the way.  It probably does map to used 
display values...
Received on Monday, 9 July 2012 14:25:15 GMT

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