Skip to content

Commit 70949c9

Browse files
committed
[css-counter-styles] Further clarify that undefined counter styles don't compute to decimal, just act like decimal. Fixes w3c#1616.
1 parent 0bd7152 commit 70949c9

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

css-counter-styles-3/Overview.bs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Counter algorithms: the 'system' descriptor</h3>
232232
the counter's representation based on the counter value. For example,
233233
''cyclic'' counter styles just cycle through their symbols repeatedly,
234234
while ''system/numeric'' counter styles interpret their symbols as digits and
235-
build their representation accordingly.
235+
build their representation accordingly.
236236
The systems are defined in the following subsections.
237237

238238
<!--
@@ -1035,31 +1035,31 @@ Marker characters: the 'symbols' and 'additive-symbols' descriptors</h3>
10351035
The 'symbols' and 'additive-symbols' descriptors specify the symbols
10361036
used by the marker-construction algorithm specified by the 'system' descriptor.
10371037
The ''@counter-style'' rule must have a valid 'symbols' descriptor
1038-
if the counter system is
1039-
''cyclic'', ''system/numeric'', ''system/alphabetic'', ''symbolic'', or ''system/fixed'',
1038+
if the counter system is
1039+
''cyclic'', ''system/numeric'', ''system/alphabetic'', ''symbolic'', or ''system/fixed'',
10401040
or a valid 'additive-symbols' descriptor
1041-
if the counter system is ''additive'';
1041+
if the counter system is ''additive'';
10421042
otherwise, the ''@counter-style'' is invalid and must be ignored.
10431043

10441044
Some counter systems specify that the 'symbols' descriptor must have at least two entries.
1045-
If the counter style's system is such,
1046-
and the 'symbols' descriptor has only a single entry,
1045+
If the counter style's system is such,
1046+
and the 'symbols' descriptor has only a single entry,
10471047
the descriptor is invalid and must be ignored.
10481048

10491049
Each entry in the 'symbols' descriptor's value defines a <dfn export>counter symbol</dfn>,
1050-
which is interpreted differently based on the counter style's system.
1050+
which is interpreted differently based on the counter style's system.
10511051
Each entry in the 'additive-symbols' descriptor's value defines an <dfn export>additive tuple</dfn>,
10521052
which consists of a <a>counter symbol</a> and a non-negative integer weight.
1053-
Each weight must be a non-negative integer,
1054-
and the <a>additive tuples</a> must be specified in order of strictly descending weight;
1053+
Each weight must be a non-negative integer,
1054+
and the <a>additive tuples</a> must be specified in order of strictly descending weight;
10551055
otherwise, the declaration is invalid and must be ignored.
10561056

10571057
<a>Counter symbols</a> may be strings, images, or identifiers,
10581058
and the three types can be mixed in a single descriptor.
10591059
Counter representations are constructed by concatenating counter symbols together.
10601060
Identifiers are rendered as strings containing the same characters.
10611061
Images are rendered as inline replaced elements.
1062-
The <a href="https://drafts.csswg.org/css3-images/#default-object-size">default object size</a> of an image <a>counter symbol</a>
1062+
The <a href="https://drafts.csswg.org/css3-images/#default-object-size">default object size</a> of an image <a>counter symbol</a>
10631063
is a 1em by 1em square.
10641064

10651065
Note: If using identifiers rather than strings to define the symbols,
@@ -1275,7 +1275,8 @@ Extending 'list-style-type', ''counter()'', and ''counters()''</h2>
12751275
</pre>
12761276

12771277
If a <<counter-style-name>> is used that does not refer to any existing counter style,
1278-
it must act identically to the ''decimal'' counter style.
1278+
it must act identically to the ''decimal'' counter style
1279+
(but does not <em>[=computed value|compute=]</em> to ''decimal'').
12791280

12801281

12811282
<!--
@@ -2468,7 +2469,7 @@ Additional Predefined Counter Styles</h2>
24682469
The Internationalization Working Group maintains a large list of predefined ''@counter-style'' rules for various world languages
24692470
in their <a href="https://www.w3.org/TR/predefined-counter-styles/">Predefined Counter Styles</a> document.
24702471
[[predefined-counter-styles]]
2471-
2472+
24722473
These additional counter styles are not intended to be supported by user-agents by default,
24732474
but can be used by users or authors copying them directly into style sheets.
24742475

0 commit comments

Comments
 (0)