Re: [csswg-drafts] [css-syntax] Trim whitespace around declarations?

How would this affect declarations of the form:

```css
:root  { --my-var: ; }
.class { --my-var: }
```

…which currently is a valid CSS var consisting of a single whitespace token?  Is it fine so long as the `;` is there, but not in the second case?

The ability to create empty vars is useful when you are adding a variable to a list property:

```css
background-image: var(--element-bg), linear-gradient(black, gray);
transform: var(--base-transform) rotate(45deg);
```

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

Received on Wednesday, 21 June 2017 03:58:56 UTC