mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
layout: Add basic support for getClientRects()
queries (#31696)
This adds basic support for `getClientRects()` by sharing code with the implementation of `getBoundingClientRect()`. In addition to sharing code, it also shares all of the bugs. Primarily, scrolilng positions are not taken into account when return boundary rectangles.
This commit is contained in:
parent
3f3820b3dc
commit
47a4ce467f
15 changed files with 48 additions and 71 deletions
|
@ -1,3 +0,0 @@
|
|||
[cssom-getClientRects-002.html]
|
||||
[CSSOM View - GetClientRects().length is the same regardless source new lines]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[getClientRects-br-htb-ltr.html]
|
||||
[Position of the BR element]
|
||||
expected: FAIL
|
|
@ -1,4 +0,0 @@
|
|||
[getClientRects-br-vlr-ltr.html]
|
||||
[Position of the BR element]
|
||||
expected: FAIL
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
[getClientRects-inline-atomic-child.html]
|
||||
[getClientRects-inline-atomic-child]
|
||||
expected: FAIL
|
||||
|
||||
[getClientRects-inline-atomic-child 2]
|
||||
expected: FAIL
|
||||
|
||||
[getClientRects-inline-atomic-child 1]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[getClientRects-inline.html]
|
||||
expected: FAIL
|
|
@ -1,7 +1,4 @@
|
|||
[getClientRects-zoom.html]
|
||||
[getBoundingClientRect for elements with css zoom 1]
|
||||
expected: FAIL
|
||||
|
||||
[getBoundingClientRect for elements with css zoom 2]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -4,3 +4,6 @@
|
|||
|
||||
[Make sure the page is ready for animation.]
|
||||
expected: FAIL
|
||||
|
||||
[Smooth scrolling while doing history navigation.]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
[ttwf-js-cssomview-getclientrects-length.html]
|
||||
[assert_length_of_getClientRects_from_Link]
|
||||
expected: FAIL
|
||||
|
||||
[assert_length_of_getClientRects_from_Parent]
|
||||
expected: FAIL
|
||||
|
||||
[assert_length_of_getClientRects_from_Button]
|
||||
expected: FAIL
|
|
@ -7,9 +7,3 @@
|
|||
|
||||
[DOMRectList item()]
|
||||
expected: FAIL
|
||||
|
||||
[DOMRectList length]
|
||||
expected: FAIL
|
||||
|
||||
[DOMRectList indexed getter]
|
||||
expected: FAIL
|
||||
|
|
|
@ -88,6 +88,3 @@
|
|||
|
||||
[DOMMatrix clone: non-initial values (3d)]
|
||||
expected: FAIL
|
||||
|
||||
[DOMRectList clone]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[canvas-descendants-focusability-003.tentative.html]
|
||||
expected: ERROR
|
||||
[<div tabindex="-1" data-focusable="false">]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue