- From: Paul Sawyer <pauldsawyer@yahoo.com>
- Date: Wed, 25 Oct 2006 10:58:13 -0400
- To: <www-style@w3.org>
- Message-ID: <000601c6f845$ff7a39f0$9459a845@paulsdesktop>
Section 12.4.1 of the CSS 2.1 WD is clear that resetting a counter in a descendant element creates a new instance of the counter. And it is clear that resetting a counter in a following sibling resets the original instance of the counter. However, it is not clear to me what the effect of resetting the counter in a descendant of a following sibling should be.
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?
For example should the following snippets produce "0" or should they produce "0.0"?
child {counter-reset: item}
nefew1{counter-reset: item}
nefew2:before{content: counters(item, ".")}
<root>
<child>
</child>
<sibling>
<nefew1>
</ nefew1>
< nefew2>
</ nefew2>
</sibling>
</root>
Received on Wednesday, 25 October 2006 15:39:19 UTC