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

Re: [cssom-view] Clarifying elementsFromPoint and pointer-events: none

From: Philip Rogers <pdr@google.com>
Date: Thu, 26 Feb 2015 13:42:05 -0800
Message-ID: <CAJgFLLt_Egyo6bCj3pttg78V=V9_XTPdgYSE=a7AcFMRyVXs4A@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: www-style <www-style@w3.org>, Jacob Rossi <Jacob.Rossi@microsoft.com>, David Bokan <bokan@google.com>

Yeah, I think it makes sense to return all elements as if pointer-events is
auto. I'm not sure the flag is worth the complexity since it's pretty
trivial to implement pointer-events special handling if the user wants to.
For the SVG cases of pointer-events: visibleFill, etc, SVG
has isPointInFill and isPointInStroke.

A case where you would not filter out pointer-events: none is when you are
building a WYSIWYG editor that supports pointer-events: none elements.

On Thu, Feb 26, 2015 at 2:09 AM, Simon Pieters <simonp@opera.com> wrote:

> On Wed, 25 Feb 2015 22:40:50 +0100, 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
> For which use cases would you not filter them out?
> --
> Simon Pieters
> Opera Software
Received on Thursday, 26 February 2015 21:42:53 UTC

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