[csswg-drafts] [css-values] How does `ident()` handle strings? (#12984)

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

== [css-values] How does `ident()` handle strings? ==
https://drafts.csswg.org/css-values-5/#ident

> can be used to manually construct [`<custom-ident>`](https://drafts.csswg.org/css-values-4/#identifier-value) values from several parts.

Well, the spec doesn't define how. If these parts are `<ident>` then I'm inferring from the examples that they are just concatenated.

But for `<string>` it's less clear. E.g. what is `ident(" a ")`?

 - The ident `a`, i.e. the result of parsing the value of the string as an `<ident>`
 - The ident `\ a\ `, i.e. an ident that has the same codepoints as the string (possibly escaped depending on #12982)

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


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

Received on Monday, 20 October 2025 19:37:03 UTC