mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45: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,15 +0,0 @@
|
|||
[scrollIntoView-container.html]
|
||||
[scrollIntoView() defaults to scrolling ancestors]
|
||||
expected: FAIL
|
||||
|
||||
[scrollIntoView({container: 'all'}) scrolls ancestors]
|
||||
expected: FAIL
|
||||
|
||||
[scrollIntoView({container: 'nearest'}) only scrolls nearest scroll container]
|
||||
expected: FAIL
|
||||
|
||||
[scrollIntoView({container: 'nearest'}) doesn't stop at itself]
|
||||
expected: FAIL
|
||||
|
||||
[scrollIntoView({container: 'nearest'}) doesn't propagate to outer frames]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue