W3C home > Mailing lists > Public > public-pointer-events@w3.org > April to June 2014

setPointerCapture and CSS pointer-events: none

From: Arthur Stolyar <nekr.fabula@gmail.com>
Date: Wed, 16 Apr 2014 02:04:14 +0400
Message-ID: <CAPAD5+DNVwRaxuoS-vDA+3FSQ1fAovE3a4fVR-Gt7Gg0xyi2jQ@mail.gmail.com>
To: public-pointer-events@w3.org

Accordingly to editors draft of spec, section "10.1 Setting Pointer
Capture" pointer capture can be set to any element (at least in the
document). Therefore I have question about how pointer capture interacts
with CSS pointer-events property. Especially what should happen when
element with pointer capture got pointer-events: none; property? e.g.
Should that element absorb events or pointer capture should be implicitly
It is not clear, because with mouse events element with 'pointer-events:
none' is just ignored by hit testing algorithm and element underneath is
targeted. But in case with pointer capture all pointer events should be
redirected to the element with pointer capture. In my mind this looks like
a paradox.

Test case for mouse: http://jsfiddle.net/U5NuV/
Test case for touch: http://jsfiddle.net/U5NuV/4/

@nekrtemplar <https://twitter.com/nekrtemplar>
Received on Tuesday, 15 April 2014 22:04:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:48:10 UTC