@@ -1081,20 +1081,21 @@ Counters in elements that do not generate boxes</h3>
1081
1081
Outputting Counters: the ''counter()'' and ''counters()'' functions</h3>
1082
1082
1083
1083
Counters have no visible effect by themselves,
1084
- but their values can be used with the ''counter()'' and ''counters()'' functions.
1085
- This happens automatically in ''::marker'' pseudo-elements,
1086
- but can be used by an author anywhere that accepts a <<string>> . Their syntax is:
1084
+ but their values can be used
1085
+ with the ''counter()'' and ''counters()'' functions,
1086
+ which represent the counter values as strings or images.
1087
+ Their syntax is:
1087
1088
1088
1089
<pre>
1090
+ <dfn><<counter>></dfn> = <<counter()>> | <<counters()>>
1089
1091
<dfn>counter()</dfn> = counter( <<custom-ident>> , [ <<counter-style>> | none ] ? )
1090
1092
<dfn>counters()</dfn> = counters( <<custom-ident>> , <<string>> , [ <<counter-style>> | none ] ? )
1091
1093
</pre>
1092
1094
1093
1095
For both functions, the first argument represents the name of a counter,
1094
1096
and if the last argument is omitted it defaults to ''decimal'' .
1095
1097
1096
- A ''counter()'' represents a <<string>> ,
1097
- obtained as follows:
1098
+ The used value of ''counter()'' is obtained as follows:
1098
1099
1099
1100
<ul>
1100
1101
<li>
@@ -1127,8 +1128,7 @@ Outputting Counters: the ''counter()'' and ''counters()'' functions</h3>
1127
1128
</pre>
1128
1129
</div>
1129
1130
1130
- A ''counters()'' represents a <<string>> ,
1131
- obtained as follows:
1131
+ The used value of ''counters()'' is obtained as follows:
1132
1132
1133
1133
<ul>
1134
1134
<li>
@@ -1159,10 +1159,6 @@ Outputting Counters: the ''counter()'' and ''counters()'' functions</h3>
1159
1159
The function represents the string thus produced.
1160
1160
</ul>
1161
1161
1162
- Issue: Counter representations don't have to be strings,
1163
- they can be images sometimes instead.
1164
- What to do?
1165
-
1166
1162
<div class='example'>
1167
1163
The following example shows a simple use of the ''counters()'' function:
1168
1164
0 commit comments