implement basic infra for ResizeObserver (#31108)

This commit is contained in:
Gregory Terzian 2024-06-18 00:44:07 +08:00 committed by GitHub
parent 3c1c395dfc
commit 3d78d60619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 706 additions and 4 deletions

View file

@ -206,6 +206,8 @@ skip: true
skip: true
[srcdoc.meta]
skip: true
[resize-observer]
skip: false
[resource-timing]
skip: false
[selection]

View file

@ -1,3 +1,4 @@
[child-document-raf-order.html]
[Ordering of steps in "Update the Rendering" - child document requestAnimationFrame order]
expected: FAIL

View file

@ -0,0 +1 @@
prefs: ["dom.resize_observer.enabled:true"]

View file

@ -0,0 +1,3 @@
[calculate-depth-for-node.html]
["Calculate depth for node" algorithm with Shadow DOM]
expected: FAIL

View file

@ -0,0 +1,2 @@
[devicepixel.html]
expected: FAIL

View file

@ -0,0 +1,4 @@
[eventloop.html]
expected: TIMEOUT
[guard]
expected: NOTRUN

View file

@ -0,0 +1,9 @@
[fragments.html]
[Adding 2nd fragment]
expected: FAIL
[Resizing 2nd fragment]
expected: FAIL
[Resizing all fragments]
expected: FAIL

View file

@ -0,0 +1,7 @@
[notify.html]
expected: ERROR
[guard]
expected: NOTRUN
[test2: remove/appendChild trigger notification]
expected: FAIL

View file

@ -0,0 +1,4 @@
[observe.html]
expected: TIMEOUT
[guard]
expected: NOTRUN

View file

@ -0,0 +1,3 @@
[ordering.html]
[ResizeObserver and IntersectionObserver ordering]
expected: FAIL

View file

@ -0,0 +1,3 @@
[scrollbars-2.html]
[ResizeObserver content-box size and scrollbars]
expected: FAIL

View file

@ -0,0 +1,3 @@
[scrollbars.html]
[ResizeObserver content-box size and scrollbars]
expected: FAIL

View file

@ -0,0 +1,10 @@
[svg-with-css-box-001.html]
expected: TIMEOUT
[test0: observe `foreignObject` SVG in HTML document]
expected: FAIL
[test1: observe inline SVG in HTML]
expected: FAIL
[guard]
expected: NOTRUN

View file

@ -0,0 +1,2 @@
[svg-with-css-box-002.svg]
expected: TIMEOUT

View file

@ -0,0 +1,34 @@
[svg.html]
expected: TIMEOUT
[guard]
expected: NOTRUN
[test0: observe svg:circle]
expected: FAIL
[test1: observe svg:ellipse]
expected: FAIL
[test2: observe svg:foreignObject]
expected: FAIL
[test3: observe svg:image]
expected: FAIL
[test4: observe svg:line]
expected: FAIL
[test5: observe svg:path]
expected: FAIL
[test6: observe svg:polygon]
expected: FAIL
[test7: observe svg:polyline]
expected: FAIL
[test8: observe svg:rect]
expected: FAIL
[test9: observe svg:text]
expected: TIMEOUT