Re: [css-houdini-drafts] [css-typed-om] What to do with a 2d CSSMatrixComponent set to a 3d DOMMatrix?

We have a similar issue with the constructor - if you pass a 3d matrix, sure, we'll set `is2D` to false.  But if you pass a 2d matrix, should we set `is2D` to true (locking it into 2d operations only) or not? (All the other operations have one or more arguments that can be either left out (2d) or set to 0/1/whatever (3d).)

One possible solution is to create two constructors, one that takes a DOMMatrix (3d) and one that takes 6 numbers (2d).

Alternately: nuts to this, just default matrixes to 3d; you can toggle it to 2d if you want manually.

We still need to answer the question from the first comment, tho. 

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

Received on Wednesday, 8 March 2017 19:36:42 UTC