W3C home > Mailing lists > Public > www-style@w3.org > February 2010

Re: Counter mechanism on boxes or elements

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 19 Feb 2010 15:36:24 -0500
Message-ID: <4B7EF648.4080002@mit.edu>
To: Robert Stam <robert@tallcomponents.com>
CC: public-css-testsuite@w3.org, www-style list <www-style@w3.org>
On 2/19/10 3:06 PM, Robert Stam wrote:
> Question: In the current CSS specification, does the counter mechanism
> apply to the elements/document tree or to the boxes/render tree?

   The scope of a counter starts at the first element in the document
   that has a 'counter-reset' for that counter and includes the
   element's descendants and its following siblings with their
   descendants. [1]

> it seems logical to define the counter
> mechanism on the boxes/render tree instead of the document elements.

For what it's worth, Gecko has an entirely separate data structure, 
which is neither the box tree nor the element tree, for keeping track of 


[1] http://www.w3.org/TR/CSS2/generate.html#scope third paragraph.
Received on Friday, 19 February 2010 20:36:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:43 UTC