- From: Johannes Odland via GitHub <sysbot+gh@w3.org>
- Date: Sat, 23 Jul 2022 14:46:16 +0000
- To: public-css-archive@w3.org
Another question regarding argument syntax. (_sorry_).
Is there anything stopping us from declaring the syntax inline with the arguments?
```css
/* Could we do this (inline) */
@custom-function --sum(--argument1 "<number>", --argument2 "<number>") {
result: calc(var(--argument1) + var(--argument2));
}
/* Instead of this? (separate syntax declaration) */
@custom-function --function(--argument1, --argument2) {
arg-syntax: --argument1 "<number>", --argument2 "<number>";
result: calc(var(--argument1) + var(--argument2));
}
```
--
GitHub Notification of comment by johannesodland
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7490#issuecomment-1193136962 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 23 July 2022 14:46:18 UTC