Re: [csswg-drafts] [css-values-5] issues with interpolation rules for calc-size() (#10220)

The use-case is `calc-size(var(--foo), size)`. It would be somewhat unfortunate if that worked *unless* you happened to store a calc-size() in that variable, when there's a perfectly reasonable interpretation of what that would mean.

I also *suspect* that "stacked calculations" is probably something that might end up being useful in the future. At least, the concept of "store a sub-calculation in a local variable so you can use it repeatedly" has already been brought up in other issues (like `calc(--pi 3.14159, 2 * --pi)` or something); this would just be doing that in an unnamed/implicit fashion.

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


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

Received on Wednesday, 8 May 2024 16:43:49 UTC