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

On 7/9/12 11:56 AM, Tab Atkins Jr. wrote:
> Counters seem to be basically equivalent to variables here, except
> with slightly different scope rules - counters can be affected by
> previous siblings as well as parents

Counters can be affected by arbitrary descendants of previous siblings 
of the node or any ancestor of the node.

Or to be clearer, determining a counter value on a node requires first 
doing box construction for everything earlier in DOM tree order.

-Boris

Received on Monday, 9 July 2012 16:04:36 UTC