Skip to content

Test in view with pointer events enabled#896

Merged
shs96c merged 1 commit intow3c:masterfrom
andreastt:pointer-events-none-in-view
Apr 19, 2017
Merged

Test in view with pointer events enabled#896
shs96c merged 1 commit intow3c:masterfrom
andreastt:pointer-events-none-in-view

Conversation

@andreastt
Copy link
Member

@andreastt andreastt commented Apr 17, 2017

When an element has pointer events disabled, e.g.
<input type=button style="pointer-events: none">,
it does not appear in the paint tree acquired from
document.elementsFromPoint.

To circumvent this issue and make element in view checks possible for
elements which don’t have pointer events enabled, we need to run the
check as if pointer events were enabled.


This change is Reviewable

When an element has pointer events disabled, e.g. <input type=button
style="pointer-events: none">, it does not appear in the paint tree
acquired from document.elementsFromPoint.

To circumvent this issue and make element in view checks possible for
elements which don’t have pointer events enabled, we need to run the
check as if pointer events were enabled.
@andreastt andreastt added the bug label Apr 17, 2017
@andreastt andreastt added this to the Level 1 milestone Apr 17, 2017
@shs96c shs96c merged commit ba6ee92 into w3c:master Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants