- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 26 Mar 2019 21:10:36 +0000
- To: public-css-archive@w3.org
@Loirooriol basically outlined why I don't want to do this. The difference in result between `sqrt(1em)` (returns 1em) and `sqrt(16px)` (returns 4px) is the big thing that I don't want to introduce; it's already cited in the reasoning for making pow() and sqrt() unitless-only. The unit() function doesn't really work either, for several reasons: * it fails completely on calculations like `5px + 10%`, which don't have a mutual canonicalization at all * it would presumably give a different answer for `1em` vs `1em + 0px` (resolving the latter to `1px`) > I would have needed this recently to dynamically remove the length units from the translation components in a matrix(). Can you elaborate on this? The components of a matrix() that actually have a unit are all in the px unit (or 1/px), iirc. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3764#issuecomment-476853974 using your GitHub account
Received on Tuesday, 26 March 2019 21:10:37 UTC