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

Given `--x: /* comment */ 1`, `style(--x: 1)` would be true? Comments are removed with leading/trailing whitespaces when consuming a declaration (but not with `CSSStyleDeclaration.setProperty()` though).

---

I think this issue also applies to properties declared with arbitrary substitution values (eg. `var()`). 

Given `--x: 1.0` and `opacity: var(--x)`, `style(opacity: 1)` would be false. Right?

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


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

Received on Friday, 10 March 2023 09:09:00 UTC