-
Notifications
You must be signed in to change notification settings - Fork 8
Description
There are a few concerns about hit testing and APIs that use geometric information (like intersection observer).
The first is that the HTML content that is live in the canvas via placeElement
should report geometry information that matches it's location within the canvas within the page. Presumably this also means things like offsetTop should report the real offset, and not the offset relative to the canvas or something else. The various uses should be reviewed as the spec is developed.
A more challenging problem is correctly hit testing when canvas content has been drawn on top of the placed element. How do we know whether the canvas of the element should receive the event? Canvas does not support methods for tracking hit test regions, but maybe it needs to now. Do we need to maintain coverage masks?