- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 Jun 2022 19:25:03 +0000
- To: public-css-archive@w3.org
This proposal leaves open the possibility for a more full-featured custom units proposal in the future (if you registered a custom --unit it would just win over a --unit property), but I'm explicitly not trying to do anything more complicated than simple variable substitution right now. This is because simple variable substitution solves the 90% case, afaict, and getting any more complex starts to get *really* complicated. For example, if you do `calc(1--unit + 2--unit)`, is the result equivalent to `3--unit`? In all the examples given here, it absolutely is *not*, which implies that you're not defining a "unit" at all, but rather a custom function of some kind. That's *also* something we should do (and has also been on my back burner for a long time, including a simple declarative substitution-based approach like what you're suggesting), but it's separate from the idea of a "unit", which needs to be a vector. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7379#issuecomment-1170399297 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 29 June 2022 19:25:05 UTC