Re: [csswg-drafts] [css-variables] Are custom properties strings? (#8533)

https://w3c.github.io/csswg-drafts/css-variables/#serializing-custom-props

> Specified values of [custom properties](https://w3c.github.io/csswg-drafts/css-variables/#custom-property) must be serialized exactly as specified by the author. Simplifications that might occur in other properties, such as dropping comments, normalizing whitespace, **reserializing numeric tokens from their value**, etc., must not occur.
> 
> Computed values of [custom properties](https://w3c.github.io/csswg-drafts/css-variables/#custom-property) must similarly be serialized exactly as specified by the author, save for the replacement of any [var()](https://w3c.github.io/csswg-drafts/css-variables/#funcdef-var) functions.

So it seems to me that `foo 1.00` and `foo 1` are different.

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


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

Received on Tuesday, 7 March 2023 17:50:20 UTC