This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17790 - isPointInPath does not help much if you have multiple polygons that might overlay each other but do have a z-index - meaning, only the top layer should be highlighted on mouseOver/click
Summary: isPointInPath does not help much if you have multiple polygons that might ove...
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-17 08:58 UTC by contributor
Modified: 2012-09-05 15:13 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-07-17 08:58:46 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html
Multipage: http://www.whatwg.org/C#dom-context-2d-ispointinpath
Complete: http://www.whatwg.org/c#dom-context-2d-ispointinpath

Comment:
isPointInPath does not help much if you have multiple polygons that might
overlay each other but do have a z-index - meaning, only the top layer should
be highlighted on mouseOver/click

Posted from: 85.178.177.123
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Comment 1 contributor 2012-07-18 18:01:47 UTC
This bug was cloned to create bug 18304 as part of operation convergence.
Comment 2 Ian 'Hixie' Hickson 2012-09-05 15:13:10 UTC
Why doesn't it help? Just check each polygon in turn in z-order.

(Or use the addHitRegion() feature, or SVG.)