Re: [css-houdini-drafts] [css-typed-om] Why don't the transform constructors/attributes accept CSSUnitValues?

I think we should have convenience functions, yes.  `let x = new CSSTranslations(CSS.px(5), CSS.px(10))` is still a little long; I'd prefer `let x = CSS.translate(CSS.px(5), CSS.px(10))`.  (And, in general, all the CSS functions should have a convenience version on CSS, I think.)

We should discuss in depth how much type-level convenience we want.  CSSNumericValue vs double is one thing, CSSKeywordValue/CSSStringValue vs DOMString is another.  Let's make a principled decision, then we can apply it to both cases.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/365#issuecomment-291247039 using your GitHub account

Received on Monday, 3 April 2017 19:24:10 UTC