- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 07 Mar 2017 23:59:02 +0000
- To: public-houdini-archive@w3.org
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