Skip to content

Commit

Permalink
Fix test helper on Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
keanulee committed Mar 23, 2018
1 parent e21da8d commit 8e779d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixtures/helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
var root = document;
while (root && root.elementFromPoint) {
el = root.elementFromPoint(x, y);
// In Safari, root.elementFromPoint() will return the host if nothing matches
// in the shadow root (https://bugs.webkit.org/show_bug.cgi?id=170743).
if (el === r) break;
r = el || r;
root = el ? el.shadowRoot : null;
}
Expand Down

0 comments on commit 8e779d5

Please sign in to comment.