- From: andruud via GitHub <noreply@w3.org>
- Date: Thu, 26 Mar 2026 22:27:27 +0000
- To: public-css-archive@w3.org
@LeaVerou The original "function inversion model" in https://github.com/w3c/csswg-drafts/issues/12927 (unhygienic, unscoped) that we resolved on already does what you expect, I believe. We then chose (resolved) to add hygienic parameters on top of that. So I think you're more or less proposing that we drop hygiene.
> > --arg-c5f2d35-length: var(--arg-c5f2d35); /* 100px for div, 200px for > figure, 300px for & + p! */
> > Isn't this the result we want to _avoid_?
>
> Is it?
```css
@function --double-it(--arg) {
--mywidth: 300px;
result: calc(var(--arg) * 2);
}
div {
--mywidth: 100px;
width: --double-it(var(--mywidth));
}
```
How wide do you expect `div` to be here?
--
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13727#issuecomment-4138732640 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 26 March 2026 22:27:28 UTC