Re: Counter Nesting Clarification

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.

-David

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

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