Auto merge of #10034 - rilut:implement-elementsfrompoint, r=emilio

Implement Document#elementsFromPoint

Fixes #9859.

I'm trying to implement Document#elementsFromPoint, which I need to reuse the `get_nodes_under_mouse` and `mouse_over` function which have been removed a days ago in #9715. So I added it back while I'm not sure if my implementation is correct. Any advice will be greatly appreciated.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10034)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-04 12:48:39 +05:30
commit 241518a7d2
7 changed files with 88 additions and 0 deletions

View file

@ -55,3 +55,5 @@ skip: true
skip: false
[WebIDL]
skip: false
[cssom-view]
skip: false

View file

@ -0,0 +1,17 @@
[elementsFromPoint.html]
type: testharness
[co-ordinates larger than the viewport from in iframe]
expected: FAIL
[SVG element at x,y]
expected: FAIL
[transformed element at x,y]
expected: FAIL
[no hit target at x,y]
expected: FAIL
[No viewport available]
expected: FAIL

View file

@ -0,0 +1,5 @@
[scrollingElement.html]
type: testharness
[Tests for scrollingElement]
expected: FAIL