Skip to content

Commit afaa732

Browse files
committed
[css-syntax-3][editorial] Add another explanatory note to the unicode-range tokenizer.
1 parent 12149dd commit afaa732

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

css-syntax-3/Overview.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,14 @@ Consume a unicode-range token</h4>
17391739
Ensure that the stream [=would start a unicode-range=]
17401740
before calling this algorithm.
17411741

1742+
Note: This token is not produced by the tokenizer under normal circumstances.
1743+
This algorithm is only called
1744+
during [=consume the value of a unicode-range descriptor=],
1745+
which itself is only called as a special case
1746+
for parsing the '@font-face/unicode-range' descriptor;
1747+
this single invocation in the entire language
1748+
is due to a bad syntax design in early CSS.
1749+
17421750
1. Consume the [=next input code point|next two input code points=] and discard them.
17431751

17441752
2. Consume as many [=hex digits=] as possible,

0 commit comments

Comments
 (0)