Skip to content

Commit 47c065b

Browse files
committed
[css-syntax] Add 'case sensitive' definition.
1 parent 2088f18 commit 47c065b

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

css-syntax/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,15 +2052,20 @@ Definitions</h3>
20522052
instead do nothing
20532053
(retain the <a>current input token</a> unchanged).
20542054

2055-
<dt><dfn export>ASCII case-insensitive</dfn>
2055+
<dt><dfn export title="case-sensitive|case-sensitively">case-sensitive</dfn>
2056+
<dd>
2057+
When two strings are to be matched case-sensitively,
2058+
this means they must be identical <a>code point</a> for code point.
2059+
2060+
<dt><dfn export title="ASCII case-insensitive|ASCII case-insensitively">ASCII case-insensitive</dfn>
20562061
<dd>
20572062
When two strings are to be matched ASCII case-insensitively,
20582063
temporarily convert both of them to ASCII lower-case form
20592064
by adding 32 (0x20) to the value of each <a>code point</a> between
20602065
U+0041 LATIN CAPITAL LETTER A (A)
20612066
and U+005A LATIN CAPITAL LETTER Z (Z),
20622067
inclusive,
2063-
and check if this results in identical sequences of <a>code points</a>.
2068+
and check if they are a <a>case-sensitive</a> match.
20642069
</dl>
20652070

20662071

css-syntax/Overview.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3625,15 +3625,20 @@ <h3 class="heading settled heading" data-level=5.2 id=parser-definitions><span c
36253625
instead do nothing
36263626
(retain the <a data-link-type=dfn href=#current-input-token title="current input token">current input token</a> unchanged).
36273627

3628-
<dt><dfn data-dfn-type=dfn data-export="" id=ascii-case-insensitive>ASCII case-insensitive<a class=self-link href=#ascii-case-insensitive></a></dfn>
3628+
<dt><dfn data-dfn-type=dfn data-export="" id=case-sensitive title=case-sensitive|case-sensitively>case-sensitive<a class=self-link href=#case-sensitive></a></dfn>
3629+
<dd>
3630+
When two strings are to be matched case-sensitively,
3631+
this means they must be identical <a data-link-type=dfn href=#code-point title="code point">code point</a> for code point.
3632+
3633+
<dt><dfn data-dfn-type=dfn data-export="" id=ascii-case-insensitive title="ASCII case-insensitive|ASCII case-insensitively">ASCII case-insensitive<a class=self-link href=#ascii-case-insensitive></a></dfn>
36293634
<dd>
36303635
When two strings are to be matched ASCII case-insensitively,
36313636
temporarily convert both of them to ASCII lower-case form
36323637
by adding 32 (0x20) to the value of each <a data-link-type=dfn href=#code-point title="code point">code point</a> between
36333638
U+0041 LATIN CAPITAL LETTER A (A)
36343639
and U+005A LATIN CAPITAL LETTER Z (Z),
36353640
inclusive,
3636-
and check if this results in identical sequences of <a data-link-type=dfn href=#code-point title="code points">code points</a>.
3641+
and check if they are a <a data-link-type=dfn href=#case-sensitive title=case-sensitive>case-sensitive</a> match.
36373642
</dl>
36383643

36393644

@@ -5179,11 +5184,14 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
51795184
<li>&lt;an+b&gt;, <a href=#anb-production title="section 6.2">6.2</a>
51805185
<li>are a valid escape, <a href=#check-if-two-code-points-are-a-valid-escape title="section 4.3.9">4.3.9</a>
51815186
<li>ASCII case-insensitive, <a href=#ascii-case-insensitive title="section 5.2">5.2</a>
5187+
<li>ASCII case-insensitively, <a href=#ascii-case-insensitive title="section 5.2">5.2</a>
51825188
<li>&lt;at-keyword-token&gt;, <a href=#typedef-at-keyword-token title="section 4">4</a>
51835189
<li>at-rule, <a href=#at-rule title="section 5">5</a>
51845190
<li>B, <a href=#b title="section 6">6</a>
51855191
<li>&lt;bad-string-token&gt;, <a href=#typedef-bad-string-token title="section 4">4</a>
51865192
<li>&lt;bad-url-token&gt;, <a href=#typedef-bad-url-token title="section 4">4</a>
5193+
<li>case-sensitive, <a href=#case-sensitive title="section 5.2">5.2</a>
5194+
<li>case-sensitively, <a href=#case-sensitive title="section 5.2">5.2</a>
51875195
<li>&lt;CDC-token&gt;, <a href=#typedef-cdc-token title="section 4">4</a>
51885196
<li>&lt;CDO-token&gt;, <a href=#typedef-cdo-token title="section 4">4</a>
51895197
<li>@charset, <a href=#at-ruledef-charset title="section 8.2">8.2</a>

0 commit comments

Comments
 (0)