setPointerCapture and CSS pointer-events: none


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:
Test case for touch:

@nekrtemplar <>

Received on Tuesday, 15 April 2014 22:04:42 UTC