W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: [cssom-view][css-ui] elementsFromPoint() and pointer-events:paint-order

From: Alan Stearns <stearns@adobe.com>
Date: Mon, 24 Jun 2013 07:50:16 -0700
To: Simon Pieters <simonp@opera.com>
CC: W3C WWW Style <www-style@w3.org>, "glenn.adams@cox.com" <glenn.adams@cox.com>, Ian Hickson <ian@hixie.ch>, Elliott Sprehn <esprehn@gmail.com>, Simon Fraser <smfr@me.com>
Message-ID: <CDEDA9FA.3BB2E%stearns@adobe.com>
On 6/24/13 4:29 AM, "Simon Pieters" <simonp@opera.com> wrote:

>Done (except I used sequence).


>>     And perhaps an implementation note?
>> The NodeList returned from elementsFromPoint(x, y) should be identical
>> a list constructed by iterating over these steps:
>> 1. Call elementFromPoint(x, y) and add any non-null result to the list.
>> 2. If the result not null nor the root element, remove that element and
>> to step 1.
>That would be incorrect, since elementFromPoint uses hit testing.

Fair enough. But then I'd add a note to parallel the note above, something

The elementsFromPoint() method will return all painted elements at the
coordinates, even those excluded from being a target for hit testing by
using the 'pointer-events' CSS property.


Received on Monday, 24 June 2013 14:51:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC