Skip to content

Commit ccb80cc

Browse files
committed
[css-counter-styles] Handle unknown counter styles generically in the representation algorithm.
1 parent ddc823e commit ccb80cc

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

css-counter-styles/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ Counter Styles</h2>
8080
follow these steps:
8181

8282
<ol>
83+
<li>
84+
If the counter style is unknown,
85+
exit this algorithm and instead <i>generate a counter representation</i>
86+
using the ''decimal'' style and the same counter value.
87+
8388
<li>
8489
If the counter value is outside the 'range' of the counter style,
8590
exit this algorithm and instead <i>generate a counter representation</i>
@@ -1020,9 +1025,6 @@ Extending 'list-style-type', ''counter()'', and ''counters()''</h2>
10201025
<dfn type>&lt;counter-style></dfn> = <<counter-style-name>> | <a>symbols()</a>;
10211026
</pre>
10221027

1023-
If an unknown <<counter-style-name>> is provided,
1024-
it must be treated the same as ''decimal'' for the purpose of generating representations.
1025-
10261028

10271029
<!--
10281030
SSSSSSSSSSSSSSS tttt lllllll

css-counter-styles/Overview.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ <h2 class="heading settled heading" data-level=2 id=counter-styles><span class=s
234234
follow these steps:
235235

236236
<ol>
237+
<li>
238+
If the counter style is unknown,
239+
exit this algorithm and instead <a data-link-type=dfn href=#generate-a-counter title="generate a counter representation">generate a counter representation</a>
240+
using the <a class=css data-link-type=maybe href=#valuedef-decimal title=decimal>decimal</a> style and the same counter value.
241+
237242
<li>
238243
If the counter value is outside the <a class=property data-link-type=propdesc href=#descdef-range title=range>range</a> of the counter style,
239244
exit this algorithm and instead <a data-link-type=dfn href=#generate-a-counter title="generate a counter representation">generate a counter representation</a>
@@ -1076,9 +1081,6 @@ <h2 class="heading settled heading" data-level=5 id=extending-css2><span class=s
10761081

10771082
<pre class=prod> <dfn class=css-code data-dfn-type=type data-export="" id=typedef-counter-style>&lt;counter-style&gt;<a class=self-link href=#typedef-counter-style></a></dfn> = <a class="production css-code" data-link-type=type href=#typedef-counter-style-name title="<counter-style-name>">&lt;counter-style-name&gt;</a> | <a data-link-type=functionish href=#funcdef-symbols title=symbols()>symbols()</a>;
10781083
</pre>
1079-
<p> If an unknown <a class="production css-code" data-link-type=type href=#typedef-counter-style-name title="<counter-style-name>">&lt;counter-style-name&gt;</a> is provided,
1080-
it must be treated the same as <a class=css data-link-type=maybe href=#valuedef-decimal title=decimal>decimal</a> for the purpose of generating representations.
1081-
10821084

10831085

10841086

0 commit comments

Comments
 (0)