Skip to content

Use <custom-ident> consistently for counter names #2377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions css-lists-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,8 @@ Outputting Counters: the ''counter()'' and ''counters()'' functions</h3>
but can be used by an author anywhere that accepts a <<string>>. Their syntax is:

<pre>
<dfn>counter()</dfn> = counter( <<ident>>, [ <<counter-style>> | none ]? )
<dfn>counters()</dfn> = counters( <<ident>>, <<string>>, [ <<counter-style>> | none ]? )
<dfn>counter()</dfn> = counter( <<custom-ident>>, [ <<counter-style>> | none ]? )
<dfn>counters()</dfn> = counters( <<custom-ident>>, <<string>>, [ <<counter-style>> | none ]? )
</pre>

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

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