Skip to content

Commit ba1011c

Browse files
committed
[css-counter-styles] On setting .name, lowercase the predefined counter-style names.
1 parent 8907cb8 commit ba1011c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

css-counter-styles/Overview.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,9 @@ The <code>CSSCounterStyleRule</code> interface</h3>
20342034
If the returned value is an <<custom-ident>>,
20352035
and the <<custom-ident>>’s representation is not an <a>ASCII case-insensitive</a> match for "decimal" or "none",
20362036
replace the associated rule's name with the <<custom-ident>>'s representation.
2037+
If the <<custom-ident>>’s respresentation is an <a>ASCII case-insensitive</a> match
2038+
for any of the other predefined <a>counter styles</a>,
2039+
lowercase the representation before replacing the associated rule's name with it.
20372040

20382041
<li>Otherwise, do nothing.
20392042
</ol>

css-counter-styles/Overview.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,9 @@ <h3 class="heading settled heading" data-level=9.2 id=the-csscounterstylerule-in
20542054
If the returned value is an <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a>,
20552055
and the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a>’s representation is not an <a data-link-type=dfn href=http://dev.w3.org/csswg/css-syntax-3/#ascii-case-insensitive title="ascii case-insensitive">ASCII case-insensitive</a> match for "decimal" or "none",
20562056
replace the associated rule’s name with the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a>'s representation.
2057+
If the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a>’s respresentation is an <a data-link-type=dfn href=http://dev.w3.org/csswg/css-syntax-3/#ascii-case-insensitive title="ascii case-insensitive">ASCII case-insensitive</a> match
2058+
for any of the other predefined <a data-link-type=dfn href=#counter-style title="counter styles">counter styles</a>,
2059+
lowercase the representation before replacing the associated rule’s name with it.
20572060

20582061
<li>Otherwise, do nothing.
20592062
</ol>

0 commit comments

Comments
 (0)