Webdriver: Implement calculate the absolute position for Get Element Rect (#37847)

Implementing [calculate the absolute
position](https://w3c.github.io/webdriver/#dfn-calculate-the-absolute-position)
and make [Get Element
Rect](https://w3c.github.io/webdriver/#get-element-rect) conforms the
spec .

Testing: Covered in webdriver WPT, especially for pointer test that
needs to find the element rect.

Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-07-04 15:22:29 +08:00 committed by GitHub
parent 13eeb29878
commit a990ff82b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 38 additions and 93 deletions

View file

@ -1,6 +1,3 @@
[get.py]
[test_no_browsing_context]
expected: FAIL
[test_basic]
expected: FAIL

View file

@ -1,58 +1,4 @@
[pointer_mouse_drag.py]
[test_drag_and_drop[20-0-0\]]
expected: FAIL
[test_drag_and_drop[20-0-300\]]
expected: FAIL
[test_drag_and_drop[20-0-800\]]
expected: FAIL
[test_drag_and_drop[0-15-0\]]
expected: FAIL
[test_drag_and_drop[0-15-300\]]
expected: FAIL
[test_drag_and_drop[0-15-800\]]
expected: FAIL
[test_drag_and_drop[10-15-0\]]
expected: FAIL
[test_drag_and_drop[10-15-300\]]
expected: FAIL
[test_drag_and_drop[10-15-800\]]
expected: FAIL
[test_drag_and_drop[-20-0-0\]]
expected: FAIL
[test_drag_and_drop[-20-0-300\]]
expected: FAIL
[test_drag_and_drop[-20-0-800\]]
expected: FAIL
[test_drag_and_drop[10--15-0\]]
expected: FAIL
[test_drag_and_drop[10--15-300\]]
expected: FAIL
[test_drag_and_drop[10--15-800\]]
expected: FAIL
[test_drag_and_drop[-10--15-0\]]
expected: FAIL
[test_drag_and_drop[-10--15-300\]]
expected: FAIL
[test_drag_and_drop[-10--15-800\]]
expected: FAIL
[test_drag_and_drop_with_draggable_element[0\]]
expected: FAIL

View file

@ -5,8 +5,5 @@
[test_element_center_point_with_offset]
expected: FAIL
[test_element_in_view_center_point_partly_visible]
expected: FAIL
[test_element_larger_than_viewport]
expected: FAIL

View file

@ -1,6 +1,3 @@
[pointer_pause_dblclick.py]
[test_dblclick_with_pause_after_second_pointerdown]
expected: FAIL
[test_no_dblclick]
expected: FAIL