## CSS2 Test Suite: 12.5 counter-increment

[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;}
    li li span:before {counter-increment: ct2 2;}
    li li li span:before {counter-increment: ct3 -3;}

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 not reset for each sublist, or at any point, and so should use the default '0' as their base point.

- list item
- list item
- list item
  - list item
  - list item
  - list item
    - list item
  - list item
  - list item
    - list item
    - list item
    - list item
    - list item
  - list item
  - list item
- list item
- list item

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