W3C home > Mailing lists > Public > www-style@w3.org > October 2006

Re: Counter Nesting Clarification

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 25 Oct 2006 09:45:02 -0700
To: www-style@w3.org
Message-ID: <20061025164502.GA18133@ridley.dbaron.org>
On Wednesday 2006-10-25 10:58 -0400, Paul Sawyer wrote:
> Should resetting a counter in a descendent of a following sibling:
>     a.   reset the original counter or
>     b.  create a new instance of the counter?

(b) create a new instance of the counter.

This is stated in the following text in the spec:

# 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. However, it does not include any elements in the
# scope of a counter with the same name created by a 'counter-reset'
# on a later sibling of the element or by a later 'counter-reset' on
# the same element.


L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Wednesday, 25 October 2006 16:45:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:26 UTC