mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +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
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue