ISSUE-2457: Why does svgmatrix.rotatefromvector(x,y) throw on y=0?
Why does svgmatrix.rotatefromvector(x,y) throw on y=0?
- State:
- RAISED
- Product:
- SVG 2
- Raised by:
- Opened on:
- 2014-02-17
- Description:
- Update the SVG2 spec to point to DOMMatrix for the definition of SVGMatrix[3]? Or update to align with the new definition of rotateFromVector there[1]?
It seems y==0 should be fine, but in SVG we let the method throw even if x!=0. See atan2[2].
Testcase:
data:text/html,<svg></svg><script>document.querySelector('svg').createSVGMatrix().rotateFromVector(1, 0); document.write('PASS');</script>
[1] http://dev.w3.org/fxtf/matrix/#widl-DOMMatrix-rotateFromVector-DOMMatrix-unrestricted-double-x-unrestricted-double-y
[2] http://en.wikipedia.org/wiki/Atan2
[3] https://svgwg.org/svg2-draft/coords.html#__svg__SVGMatrix__rotateFromVector - Related Actions Items:
- No related actions
- Related emails:
- minutes, 27 February 2014 SVG WG telcon (from cam@mcc.id.au on 2014-02-28)
- Agenda, 27 February 2014 SVG WG telcon (from ed@opera.com on 2014-02-26)
- RE: agenda, 20 February 2014 SVG WG telcon (from Thomas.O.Smailus@boeing.com on 2014-02-25)
- agenda, 20 February 2014 SVG WG telcon (from cam@mcc.id.au on 2014-02-20)
- ISSUE-2457: Why does svgmatrix.rotatefromvector(x,y) throw on y=0? (from sysbot+tracker@w3.org on 2014-02-17)
Related notes:
No additional notes.
Display change log