[csswg-drafts] [css-variables] Whitespace-trimming and custom properties. (#6345)

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

== [css-variables] Whitespace-trimming and custom properties. ==
Today, these things are invalid syntax per spec:

 * `--a:;`
 * `width: var(--b,);`
 * `width: var(--c,/**/);`

However these are valid:

 * `--a: ;`
 * `width: var(--a, );`

As per https://github.com/w3c/csswg-drafts/issues/774#issuecomment-313257194, we're supposed to trim whitespace from declaration values. I was looking at implementing this in Gecko (while I was going through CSS variables failures) and I think we should make the former examples also valid, if we want to keep the resolution in #774.

We should also consider trimming whitespace from the fallback value, too...

For reference, this contains the test changes: https://phabricator.services.mozilla.com/D116459

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


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

Received on Thursday, 3 June 2021 15:01:07 UTC