mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
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:
parent
dcb90bb85e
commit
17a269a8ad
34 changed files with 492 additions and 318 deletions
|
@ -1,2 +1,2 @@
|
|||
[hidden-until-found-001.html]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[preventScroll-nested-scroll-elements.html]
|
||||
[focus(options) - preventScroll on nested scroll elements]
|
||||
expected: FAIL
|
3
tests/wpt/meta/html/interaction/focus/processing-model/preventScroll-textarea.html.ini
vendored
Normal file
3
tests/wpt/meta/html/interaction/focus/processing-model/preventScroll-textarea.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[preventScroll-textarea.html]
|
||||
[preventScroll: true on a textarea element]
|
||||
expected: FAIL
|
|
@ -1,18 +1,3 @@
|
|||
[preventScroll.html]
|
||||
[Sanity test]
|
||||
expected: FAIL
|
||||
|
||||
[elm.focus() without arguments]
|
||||
expected: FAIL
|
||||
|
||||
[elm.focus(undefined)]
|
||||
expected: FAIL
|
||||
|
||||
[elm.focus(null)]
|
||||
expected: FAIL
|
||||
|
||||
[elm.focus({})]
|
||||
expected: FAIL
|
||||
|
||||
[elm.focus({preventScroll: false})]
|
||||
[elm.focus({preventScroll: true})]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[textarea-scroll-selection.html]
|
||||
[programatic focus() scrolls selection into view including ancestors]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
[iframe-loading-lazy.html]
|
||||
expected: ERROR
|
||||
[Below-viewport srcdoc iframes load lazily]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue