script: Implement scrollIntoView (#38230)

This is an implementation for `scrollIntoView`. For now, it is called
when a certain element gains focus.

Testing: Existing WPT tests
Fixes: #24059

Signed-off-by: abdelrahman1234567 <abdelrahman.hossameldin.awadalla@huawei.com>
This commit is contained in:
Abdelrahman Hossam 2025-08-06 16:08:25 +08:00 committed by GitHub
parent dcb90bb85e
commit 17a269a8ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 492 additions and 318 deletions

View file

@ -1,5 +1,4 @@
[iframe-loading-lazy.html]
expected: ERROR
[Below-viewport srcdoc iframes load lazily]
expected: FAIL

View file

@ -1,4 +1,3 @@
[move-element-and-scroll.html]
expected: ERROR
[Test that <img> below viewport is not loaded when moved to another document and then scrolled to]
expected: FAIL

View file

@ -1,4 +1,3 @@
[remove-element-and-scroll.html]
expected: ERROR
[Test that <img> below viewport is not loaded when removed from the document and then scrolled to]
expected: FAIL

View file

@ -1,3 +0,0 @@
[scrolling-below-viewport-image-lazy-loading-in-iframe.html]
[Scrolling a lazy loaded image into view in an iframe]
expected: FAIL