- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Sat, 04 Feb 2017 00:59:23 +0000
- To: public-houdini-archive@w3.org
I'm thinking we should have all the "simple" (single-unit) types
should be `{value, unit}`, and we should add a `.to(unit)` function
that converts between units when possible (and throws otherwise).
So `CSS.px(5).to("in")` works, as does `CSS.deg(5).to("rad")`, but
`CSS.px(5).to("em")` and `CSS.px(5).to("deg")` both throw.
--
GitHub Notification of comment by tabatkins
Please view or discuss this issue at
https://github.com/w3c/css-houdini-drafts/issues/356#issuecomment-277403653
using your GitHub account
Received on Saturday, 4 February 2017 00:59:31 UTC