Skip to content

Commit 7667f88

Browse files
committed
[css-counter-styles] Specify what happens when you give an unknown counter-style-name to counter()/etc.
1 parent fd659ec commit 7667f88

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

css-counter-styles/Overview.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,9 @@ Extending 'list-style-type', ''counter()'', and ''counters()''</h2>
10201020
<dfn type>&lt;counter-style></dfn> = <<counter-style-name>> | <a>symbols()</a>;
10211021
</pre>
10221022

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+
10231026

10241027
<!--
10251028
SSSSSSSSSSSSSSS tttt lllllll

css-counter-styles/Overview.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</p>
6060
<h1 class="p-name no-ref" id=title>CSS Counter Styles Level 3</h1>
6161
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
62-
<span class=dt-updated><span class=value-title title=20140304>4 March 2014</span></span></span></h2>
62+
<span class=dt-updated><span class=value-title title=20140310>10 March 2014</span></span></span></h2>
6363
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-counter-styles/>http://dev.w3.org/csswg/css-counter-styles/</a><dt>Latest version:<dd><a href=http://w3.org/TR/css-counter-styles-3/>http://w3.org/TR/css-counter-styles-3/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-counter-styles/>http://dev.w3.org/csswg/css-counter-styles/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2012/WD-css-counter-styles-3-20121009/ rel=previous>http://www.w3.org/TR/2012/WD-css-counter-styles-3-20121009/</a>
6464
<dt>Feedback:</dt>
6565
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-counter-styles%5D%20feedback">www-style@w3.org</a>
@@ -901,7 +901,7 @@ <h3 class="heading settled heading" data-level=3.8 id=counter-style-symbols><spa
901901

902902
<table class="definition descdef" data-dfn-for=@counter-style><tr><th>Name:<td><dfn class=css-code data-dfn-for=@counter-style data-dfn-type=descriptor data-export="" id=descdef-symbols>symbols<a class=self-link href=#descdef-symbols></a></dfn><tr><th>For:<td><a class=css-code data-link-type=at-rule href=#at-ruledef-counter-style title=@counter-style>@counter-style</a><tr><th>Value:<td><a class="production css-code" data-link-type=type href=#typedef-symbol title="<symbol>">&lt;symbol&gt;</a>+<tr><th>Initial:<td>n/a</table>
903903
<table class="definition descdef" data-dfn-for=@counter-style><tr><th>Name:<td><dfn class=css-code data-dfn-for=@counter-style data-dfn-type=descriptor data-export="" id=descdef-additive-symbols>additive-symbols<a class=self-link href=#descdef-additive-symbols></a></dfn><tr><th>For:<td><a class=css-code data-link-type=at-rule href=#at-ruledef-counter-style title=@counter-style>@counter-style</a><tr><th>Value:<td>[ <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-syntax-3/#typedef-integer title="<integer>">&lt;integer&gt;</a> &amp;&amp; <a class="production css-code" data-link-type=type href=#typedef-symbol title="<symbol>">&lt;symbol&gt;</a> ]#<tr><th>Initial:<td>n/a</table>
904-
<pre class=prod><dfn class=css-code data-dfn-type=type data-export="" id=typedef-symbol>&lt;symbol&gt;<a class=self-link href=#typedef-symbol></a></dfn> = <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#string-value title="<string>">&lt;string&gt;</a> | <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-images-3/#image-type title="<image>">&lt;image&gt;</a> | <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#ltident title="<ident>">&lt;ident&gt;</a></pre>
904+
<pre class=prod><dfn class=css-code data-dfn-type=type data-export="" id=typedef-symbol>&lt;symbol&gt;<a class=self-link href=#typedef-symbol></a></dfn> = <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#string-value title="<string>">&lt;string&gt;</a> | <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-images-3/#image-type title="<image>">&lt;image&gt;</a> | <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-ident title="<ident>">&lt;ident&gt;</a></pre>
905905
<p> The <a class=property data-link-type=propdesc href=#descdef-symbols title=symbols>symbols</a> and <a class=property data-link-type=propdesc href=#descdef-additive-symbols title=additive-symbols>additive-symbols</a> descriptors specify the symbols
906906
used by the marker-construction algorithm specified by the <a class=property data-link-type=propdesc href=#descdef-system title=system>system</a> descriptor.
907907
The <a class=property data-link-type=propdesc href=#descdef-symbols title=symbols>symbols</a> descriptor must be specified if the counter system is <a class=css data-link-type=maybe href=#valuedef-cyclic title=cyclic>cyclic</a>,
@@ -1076,6 +1076,9 @@ <h2 class="heading settled heading" data-level=5 id=extending-css2><span class=s
10761076

10771077
<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>;
10781078
</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+
10791082

10801083

10811084

0 commit comments

Comments
 (0)