Re: [csswg-drafts] [cssom] Serialization of custom identifiers (#2858)

Untagging Values, as it has nothing to say about how to spell these types. The Syntax spec is quite clear here - `\31st` and `\31 st` are both valid ways to spell an ident containing the characters "1st". It looks like CSSOM is lacking detail on how to serialize arbitrary idents, but round-tripping is always an implicit requirement, so `\31 st` is probably the best way do it, and luckily it's what Blink and Firefox already do. This should be clarified in CSSOM.

Safari and Edge are just plain wrong on this issue - `1st` and `"1st"` are both invalid idents (they're a dimension and a string, respectively, neither of which are accepted by these properties).

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2858#issuecomment-949088313 using your GitHub account


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

Received on Friday, 22 October 2021 00:02:15 UTC