- From: andruud via GitHub <noreply@w3.org>
- Date: Fri, 14 Nov 2025 07:49:53 +0000
- To: public-css-archive@w3.org
Because the argument grammar of `var()` does not allow `var(--fallback)` to appear where it does?
```
color: var(--color var(--fallback)); /* invalid */
^
```
The argument grammar being:
```
<var-args> = var( <declaration-value> , <declaration-value>? )
^
```
We _only_ expect a comma here, and `var(` is not a comma token.
--
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13083#issuecomment-3531391617 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 14 November 2025 07:49:53 UTC