Re: [community-group] Types for CSS Keywords (#177)

> Infinity is a number, not a keyword (is this a good argument for having a number type in the spec?)

That is incorrect.
There is no numeric way to express `Infinity`.
It is a keyword that equates to a number when evaluated.

To address the underlying numeric value you need to use a platform specific API.
This can be a keyword like `Infinity`, `e` `pi`, ...

-----

Escaping quotes will not work.
These are not raw characters.

What if one of the target platforms uses parentheses as string start and end tokens.
Or less exotic, a platform that uses only single quotes.
This is unusual but not impossible.

`"$value": "\"Helvetica\"",` makes this specification specific to platforms that can express strings with double quotes.

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/177#issuecomment-1337591904 using your GitHub account


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

Received on Monday, 5 December 2022 15:39:24 UTC