Re: [csswg-drafts] [css-transitions] Transition to height (or width) "auto" (#626)

> One question about the specifics of the current proposal: does it make sense that calc-size() is not allowed inside of calc(), but it is allowed inside of progress(), mix(), and calc-mix()? 

It's not allowed in progress() or calc-mix(); those both take `<calc-sum>`, which calc-size() doesn't match. `mix()` allows it, by virtue of allowing *anything*, but it doesn't offer you any additional behavior; the interpolation rules remain the same.

> Or should there be rules for allowing compatible calc-size() values to be used inside of calc()?

We *could* allow a `calc-size(any, ...)` to count as the type of its second argument, which would allow it to be used in other numeric contexts, but I'm not sure how much that gains us, since you could just write `calc(...)` at that point instead. I'm open to it if you think it would be useful, tho.

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


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

Received on Thursday, 18 January 2024 20:39:09 UTC