CSS2 Test Suite: 12.5 counter-reset

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

span:before {content: counter(ct1) "|" counter(ct2) "|" counter(ct3) "... ";}
li span:before {counter-increment: ct1; counter-reset: 0;}
li li span:before {counter-increment: ct2 2; counter-reset: 0;}
li li li span:before {counter-increment: ct3 -3; counter-reset: 0;}


The list items in the following set of lists all have 'span' elements, and each 'span' should be preceded with generated content in the form "a|b|c... " where the letters are incremented numbers. "a" numbers increment in ones, "b" in twos, and "c" in negative threes. Note that counters are reset for each sublist.


[index page] [section] [Previous] [Next] [Specification]