Re: [css-houdini-drafts] [css-typed-om] Lengths and Angles (and other unit-group objects) should have consistent structure

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