Skip to content

Commit 9d18319

Browse files
author
Litherum
committed
[css-fonts-4] Clarify parsing rules for the color-<<integer>> descriptors in font palettes
1 parent d201052 commit 9d18319

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,13 +3557,13 @@ The parsing rules for these descriptors are as follows:
35573557

35583558
1. The descriptor must start with the string "color-".
35593559

3560-
2. If there is nothing remaining in the string, it is a parse failure.
3560+
2. If there is nothing remaining in the string, the descriptor is invalid.
35613561

3562-
3. Otherwise, if the next character is a 0, the presence of anything after the 0 results in a parse failure.
3562+
3. Otherwise, if the next character is a 0, the presence of anything after the 0 results in an invalid descriptor.
35633563

35643564
4. Otherwise, if the next character is a non-zero digit (1 through 9), the remainder of the string must be digits.
35653565

3566-
5. Otherwise, it is a parse failure.
3566+
5. Otherwise, it is an invalid descriptor.
35673567

35683568
Using these rules, the non-negative integers prefixed with "color-" are valid identifiers.
35693569

0 commit comments

Comments
 (0)