W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: Clarifying elementsFromPoint and pointer-events: none

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Thu, 26 Feb 2015 09:47:57 +1100
Message-ID: <CAMdq69-OpRozj1WRh4RX4d4CWeD8xZZ6sgB+7tfVcoW2v=+W=w@mail.gmail.com>
To: Philip Rogers <pdr@google.com>
Cc: www-style <www-style@w3.org>, Jacob Rossi <Jacob.Rossi@microsoft.com>, David Bokan <bokan@google.com>
I think the spec is clear about this. It says return the target according
to hit testing, and there is even a note below mentions that
"pointer-events: none" can exclude an element from being such target. So
the conclusion is elements with "pointer-events: none" cannot be returned
by elementsFromPoint.

BTW, I think you should prefix your title with "[cssom-view]" so that
people knows what spec this email is talking about.

- Xidorn

On Thu, Feb 26, 2015 at 8:40 AM, Philip Rogers <pdr@google.com> wrote:

> www-style,
> The elementsFromPoint (plural) spec [1] is ambiguous about whether
> elements with pointer-events: none should be returned. Can we update the
> spec to explicitly allow pointer-events: none elements?
> I think it makes sense to return all elements and have this be a
> general-purpose API. I spoke with a front-end developer on the polymer team
> and they agreed because typical usecases already need to filter out
> unwanted elements. The IE team may have come to the same conclusion as
> msElementsFromPoint also includes pointer-events: none elements.
> [1] http://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface
Received on Wednesday, 25 February 2015 22:49:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:51 UTC