[csswg-drafts] [css-syntax-3][css-values-4] definition of `<ident>` seems to require U+xxxx form (#6766)

svgeesus has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax-3][css-values-4] definition of `<ident>` seems to require U+xxxx form ==
> CSS defines a large set of named colors, so that common colors can be written and read more easily. A `<named-color>` is written as an `<ident>`, 
https://drafts.csswg.org/css-color-4/#named-colors

which links to

>CSS identifiers, generically denoted by `<ident>`, consist of a sequence of characters conforming to the `<ident-token>` grammar.
https://drafts.csswg.org/css-values-4/#typedef-ident

which links to

> `<ident-token>`, `<function-token>`, `<at-keyword-token>`, `<hash-token>`, `<string-token>`, and `<url-token>` have a value composed of zero or more code points.
https://drafts.csswg.org/css-syntax-3/#typedef-ident-token 

and _code points_ links to 

> A code point is a Unicode code point and is represented as "U+" followed by four-to-six ASCII upper hex digits, in the range U+0000 to U+10FFFF, inclusive. A code point’s value is its underlying number.

> A code point may be followed by its name, by its rendered form between parentheses when it is not U+0028 or U+0029, or by both. 
https://infra.spec.whatwg.org/#code-point

Uh ok so` U+0020` is a code point, as is `U+0020 SPACE` but `a` is not a code point and thus, the CSS named colors  like `green` (to take an example use of CSS `<ident>`) don't follow the grammar because they are not written as a bunch of U+things

It seems that the wrong definition in Infra is being linked to?

Or am I misunderstanding "represented as"?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6766 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 26 October 2021 12:40:02 UTC