- From: Rik Cabanier <cabanier@gmail.com>
- Date: Tue, 4 Feb 2014 10:31:18 -0800
- To: Ian Hickson <ian@hixie.ch>
- Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
On Tue, Feb 4, 2014 at 9:13 AM, Ian Hickson <ian@hixie.ch> wrote: > On Mon, 3 Feb 2014, Rik Cabanier wrote: > > > > The spec is currently silent what should happen when an element that is > > associated with a hit region, is moved to another location in the > > document, another document or deleted. > > > > This should result in removal of the hit region. Maybe this is defined > > in the HTML spec? > > It results in the region no longer having a backing control (see the > definition of "the control represented by a region"), but why would it > remove the region? The region might be there for other reasons, e.g. it > might have a cursor or ID specified, or the author might be using it to > play a sound when the user tries to click on the space where the control > used to be drawn, to indicate to the user that the control is gone. Ok, link: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#the-control-represented-by-a-region It's a bit weird that you can do "ctx.addHitRegion({});" :-)
Received on Tuesday, 4 February 2014 18:31:46 UTC