Re: [csswg-drafts] [css-values]: Proposal – Add type conversion functions to mathematical expressions (#13550)

> It's still not clear what `v(calc(1px + 2em + 3pt))` is supposed to be, though.

v(calc(1px + 2em + 3pt))   ⇒   v(37px)   ⇒   37

> > This would create too many dependencies on the unit
> 
> More like it's not dependent on `--size`'s unit, and you want it to be,

Exactly. If a calculation depends on a variable value unit, it still must resolve when the unit changes.

If this is not desired, just don't use `u()`. Using `u()` is an option for those cases when this behavior is desired.

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


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

Received on Tuesday, 24 February 2026 23:32:45 UTC