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

How would this affect declarations of the form:

: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:

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 using your GitHub account

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