webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Interactability `in view` definition seems ambiguous, making it unclear if `inert` elements are `in view`

Open patrickangle opened this issue 2 years ago • 0 comments

While investigating a failure in the /inert/inert-pseudo-element-hittest.html test case on WebKit-based browsers, we determined that this occurs because WebKit doesn't consider an inert element to be in view because it has pointer-events: none. We are returning an element not interactable error code because of this. Other engines to not exhibit this behavior.

The spec says

An element is in view if it is a member of its own pointer-interactable paint tree, given the pretense that its pointer events are not disabled.

and

An element is said to have pointer events disabled if the resolved value of its "pointer-events" style property is "none".

@gsnedders and I are both unclear on what the intention of "given the pretense that its pointer events are not disabled" is. Should we be assuming that the pointer-events state is supposed to be ignored based on that, or does "given the pretense that" just mean "and".

Once we understand what the intention here is, we should clarify the spec itself to know if this is really just an "and" or if this is a "ignore this other thing".

patrickangle avatar Mar 09 '23 19:03 patrickangle