Skip to content

Commit c2a5f2e

Browse files
committed
[selectors] Add example showing the difference between general case-insensitivity and strict ASCII case insensitivity, #13645
1 parent cbb2790 commit c2a5f2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

selectors-4/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,6 +2151,13 @@ Case-sensitivity</h3>
21512151
[=ASCII case-insensitively=]
21522152
(i.e. [a-z] and \[A-Z] are considered equivalent).
21532153

2154+
<div class="example">
2155+
For example, ASCII case insensitivity allows <code>green</code>
2156+
to match <code>GREEN</code>.
2157+
However, <code>grün</code>
2158+
would not match <code>GRÜN</code>.
2159+
</div>
2160+
21542161
Alternately, the attribute selector may include the identifier <code>s</code>
21552162
before the closing bracket (<code>]</code>);
21562163
in this case the UA must match the value case-sensitively,

0 commit comments

Comments
 (0)