Re: [csswg-drafts] [css-values-5][various] Better handling of arguments with commas (#9539)

> I don't think [arbitrary substitution functions](https://drafts.csswg.org/css-variables/#arbitrary-substitution) should be allowed to mess with the grammar of the calling function itself, just like you're not allowed to paste e.g. a fallback into another var(): --fb:, myfallback;  --y: var(--x var(--fb)) /* invalid */.

Oh, hm, you're probably right actually. You indeed can't sub in arbitrary grammar like that, since var() is *actually* parsed while its surrounding context is left as unparsed tokens. I'll need to give this a little thought.

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


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

Received on Wednesday, 25 September 2024 15:56:48 UTC