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 12:03:54 -0400
Message-ID: <4FFB00EA.1000600@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org
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.

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

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