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

When authors use a custom property value, they usually know its type - then unit division and re-multiplication already is the generic solution. Soon, you’ll be able to hide that away in your code by using custom functions if you want to.

Authors can also register custom properties and then enforce a particular syntax for their values, thus prescribe a type (or use functions in a similar way).

With the [resolution of #12488](https://github.com/w3c/csswg-drafts/issues/12488#issuecomment-4195454483), you’ll get slightly different conversion functions that may help in some cases. 

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


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

Received on Tuesday, 7 April 2026 10:07:09 UTC