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

> Instead, you should just divide:
> 
> div {
>   --size: 2px;
>   width: calc(1px * pow(var(--size) / 1px, 2));
> }

This would create too many dependencies on the unit. If you'd change `--size: 2px` to, e.g., `--size: 2em`, you would also need to update the `width:` rule.

-- 
GitHub Notification of comment by SetTrend
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13550#issuecomment-3951681777 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 13:09:07 UTC