Skip to content

Commit cb834e9

Browse files
noxtabatkins
authored andcommitted
Use <custom-ident> consistently for counter names
The functions `counter()` and `counters()` were badly specified, using `<ident>` for the counter names, even though `counter-increment` and friends will only accept `<custom-ident>` for those names.
1 parent 87169a8 commit cb834e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-lists-3/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,8 @@ Outputting Counters: the ''counter()'' and ''counters()'' functions</h3>
10411041
but can be used by an author anywhere that accepts a <<string>>. Their syntax is:
10421042

10431043
<pre>
1044-
<dfn>counter()</dfn> = counter( <<ident>>, [ <<counter-style>> | none ]? )
1045-
<dfn>counters()</dfn> = counters( <<ident>>, <<string>>, [ <<counter-style>> | none ]? )
1044+
<dfn>counter()</dfn> = counter( <<custom-ident>>, [ <<counter-style>> | none ]? )
1045+
<dfn>counters()</dfn> = counters( <<custom-ident>>, <<string>>, [ <<counter-style>> | none ]? )
10461046
</pre>
10471047

10481048
For both functions, the first argument represents the name of a counter,
@@ -1221,7 +1221,7 @@ Outputting Counters: the ''counter()'' and ''counters()'' functions</h3>
12211221
but this is a *little bit* clumsy,
12221222
and doesn't work for siblings.)
12231223

1224-
Suggestion is to add a <css>counter-value(<<ident>>)</css> function,
1224+
Suggestion is to add a <css>counter-value(<<custom-ident>>)</css> function,
12251225
which returns the value of the named counter as an integer,
12261226
rather than returning a string.
12271227
</div>

0 commit comments

Comments
 (0)