This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://www.w3.org/TR/SVG2/single-page.html#coords-__svg__SVGMatrix__rotateFromVector SVGMatrix is documented to throw an InvalidAccessError. Maybe it makes more sense to throw a RangeError (since 0 is outside the valid range). http://people.mozilla.org/~jorendorff/es6-draft.html#sec-15.11.6.2 Another option is to throw a TypeError?
I guess the same issue applies to skewX and skewY
The idea is to replace SVGMatrix with the interface CSSMatrix https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html It still needs approval from the CSS WG though. This would also get rid of the exception handling, since we try to avoid exceptions in general unless you do something forbidden nowadays. Also, I assume the old exception handling is based on SVG exceptions which got replaced by general DOM exception in SVG2.
CSSMatrix does not document what happens when x or y is 0.
(In reply to comment #3) > CSSMatrix does not document what happens when x or y is 0. Doesn't need to. Some matrix values get undefined.
(In reply to comment #4) > (In reply to comment #3) > > CSSMatrix does not document what happens when x or y is 0. > > Doesn't need to. Some matrix values get undefined. Sorry, in general depends on the math of each function. Some values can get none-finit.