tqtiwvfdn / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

Path methods do not ensure subpath #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. context.beginPath();
2. context.lineTo(10, 10);
3. context.lineTo(10, 20);
4. context.lineTo(20, 20);
5. context.closePath();
6. context.fill();

What is the expected output? What do you see instead?
A filled in triangle. Instead, nothing appears.

What version of the product are you using? On what operating system?
r73, Internet Explorer 8

Please provide any additional information below.
I first discovered this from the blog 
http://geekswithblogs.net/PhubarBaz/archive/2010/06/03/finite-numbers-and-explor
ercanvas.aspx. The attached diff modified "excanvas.js" to ensure a subpath 
according to the "Path" section of 
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.h
tml#complex-shapes-%28paths%29.

Original issue reported on code.google.com by chro...@gmail.com on 30 Dec 2010 at 3:37

Attachments: