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

tabatkins has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] Why don't the transform constructors/attributes accept CSSUnitValues? ==
The CSSRotation.x/y/z and CSSScale.x/y/z attributes are typed as `double`, presumably because the arguments are typed as `<number>` in CSS. But we don't generally represent `<number>`s as doubles in the TypedOM; they're CSSUnitValues with `{unit: "number"}`.

Is there a particular reason we're using doubles here, or should we switch to CSSNumericValue?  Or maybe `(double or CSSNumericValue)`, in both the constructors and the attribute setters?  (Whatever we do, we're setting precedent for all future interfaces representing `<number>` values.)

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/365 using your GitHub account

Received on Tuesday, 7 March 2017 23:59:08 UTC