title: Context.isPointInPath usage
body: <p>I googled for this but didn't find any example that uses <code>Context.isPointInPath</code> in HTML 5.</p>
  
  <p>I know it's supposed to return me true if the point is on the current path, but how exactly do you use it? Should you use it in between <code>context.beginPath()</code> and <code>cotext.closePath()</code> (or fill* for that matter)</p>
  
  <p>I tried this:</p>
  
  <pre><code>var canvas = document.getElementById('canvas');
  var ctx = canvas.getContext('2d');
  ctx.beginPath();
  ctx.fillRect(0,0, 100,100);
  ctx.isPointInPath(50,50); // Returned false
  ctx.isPointInPath(50,0);  // Tried it on the actual path, not the filled region, returned false
  ctx.isPointInPath(50,8);  // My canvas had the default 8 offset, returned false
  ctx.isPointInPath(50,9);  // Canvas had a border of 1px, returned false
  </code></pre>
  
  <p>I don't know what went wrong, but all of them returned false and I never had one returning true.</p>
  
  <p>Finally, I closed the path and checked for the values, still returned false.</p>