Contents
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section is informative.
This section has been replaced by Section 3 ("Requirements for Responsible Implementation of CSS") in CSS Snapshot 2015 [CSS].
This section is informative.
This section has been replaced by Section 3 ("Requirements for Responsible Implementation of CSS") in CSS Snapshot 2015 [CSS].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Values and Units Module Level 3 [CSS3VAL].
This section has been replaced by CSS Values and Units Module Level 3 [CSS3VAL].
This section has been replaced by CSS Values and Units Module Level 3 [CSS3VAL].
Counters are denoted by case-sensitive identifiers (see the 'counter-increment' and 'counter-reset' properties). To refer to the value of a counter, the notation 'counter(<identifier>)' or 'counter(<identifier>, <'list-style-type'>)', with optional white space separating the tokens, is used. The default style is 'decimal'.
To refer to a sequence of nested counters of the same name, the notation is 'counters(<identifier>, <string>)' or 'counters(<identifier>, <string>, <'list-style-type'>)' with optional white space separating the tokens.
See "Nested counters and scope" in the chapter on generated content for how user agents must determine the value or values of the counter. See the definition of counter values of the 'content' property for how it must convert these values to a string.
In CSS 2.2, the values of counters can only be referred to from the 'content' property. Note that 'none' is a possible <'list-style-type'>: 'counter(x, none)' yields an empty string.
Here is a style sheet that numbers paragraphs (p) for each chapter (h1). The paragraphs are numbered with roman numerals, followed by a period and a space:
p {counter-increment: par-num} h1 {counter-reset: par-num} p:before {content: counter(par-num, upper-roman) ". "}
This section has been replaced by CSS Color Module Level 3 [CSS3COLOR].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].
This section has been replaced by CSS Syntax Module Level 3 [CSS3SYN].