Re: [cssom-view-tests] elementFromPoint: fix scrolled out of view cases (#4217)

HTML says

> Pointing device interaction with an image associated with a set of layered shapes per the above algorithm must result in the relevant user interaction events being first fired to the top-most shape covering the point that the pointing device indicated, if any, or to the image element itself, if there is no shape covering that point. User agents may also allow individual area elements representing hyperlinks to be selected and activated (e.g. using a keyboard).

https://html.spec.whatwg.org/multipage/embedded-content.html#image-map-processing-model

It's a bit handwavy but it tries to hook into hit testing, and `elementFromPoint` is defined in terms of hit testing (which is undefined, but, yeah). I would like it to work because it makes testing possible. :-)

View on GitHub: https://github.com/w3c/web-platform-tests/pull/4217#issuecomment-262170909

Received on Tuesday, 22 November 2016 07:52:08 UTC