Re: [csswg-drafts] Declarative custom functions (#7490)

I also think it's worthwhile to this proposal for declarative functions that they also support non-pure functions.

It would be great if functions could support `var()` references using that `var` ref in the context from which the function was invoked.

Perhaps to make these functions safer when not pure, we could require that `var()` usages inside functions provide a default/fallback value.

The same rules would also apply for `self()` if that proposal makes any headway.

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


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

Received on Wednesday, 11 October 2023 20:50:45 UTC