Implement document.scrollingElement (#35994)

<!-- Please describe your changes on the following line: -->
This implements `document.scrollingElement`
(https://drafts.csswg.org/cssom-view/#dom-document-scrollingelement).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #35700
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->

<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->

---------

Signed-off-by: JimmyDdotEXE <50691404+JimmyDdotEXE@users.noreply.github.com>
This commit is contained in:
Jimmy D. Buckets 2025-05-05 08:50:42 -04:00 committed by GitHub
parent 7ea5951e34
commit 1f6050f931
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 195 additions and 272 deletions

View file

@ -1,13 +1,4 @@
[scroll-behavior-subframe-root.html]
[Subframe with auto scroll-behavior ; scroll() with default behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scroll() with auto behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scroll() with instant behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scroll() with smooth behavior]
expected: FAIL
@ -17,21 +8,9 @@
[Subframe with smooth scroll-behavior ; scroll() with auto behavior]
expected: FAIL
[Subframe with smooth scroll-behavior ; scroll() with instant behavior]
expected: FAIL
[Subframe with smooth scroll-behavior ; scroll() with smooth behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollTo() with default behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollTo() with auto behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollTo() with instant behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollTo() with smooth behavior]
expected: FAIL
@ -41,21 +20,9 @@
[Subframe with smooth scroll-behavior ; scrollTo() with auto behavior]
expected: FAIL
[Subframe with smooth scroll-behavior ; scrollTo() with instant behavior]
expected: FAIL
[Subframe with smooth scroll-behavior ; scrollTo() with smooth behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollBy() with default behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollBy() with auto behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollBy() with instant behavior]
expected: FAIL
[Subframe with auto scroll-behavior ; scrollBy() with smooth behavior]
expected: FAIL
@ -65,9 +32,6 @@
[Subframe with smooth scroll-behavior ; scrollBy() with auto behavior]
expected: FAIL
[Subframe with smooth scroll-behavior ; scrollBy() with instant behavior]
expected: FAIL
[Subframe with smooth scroll-behavior ; scrollBy() with smooth behavior]
expected: FAIL
@ -95,23 +59,11 @@
[Subframe with smooth scroll-behavior ; scrollIntoView() with smooth behavior]
expected: FAIL
[Subframe setting scrollLeft with auto scroll-behavior]
expected: FAIL
[Subframe setting scrollLeft with smooth scroll-behavior]
expected: FAIL
[Subframe setting scrollTop with auto scroll-behavior]
expected: FAIL
[Subframe setting scrollTop with smooth scroll-behavior]
expected: FAIL
[Aborting an ongoing smooth scrolling on a subframe with another smooth scrolling]
expected: FAIL
[Aborting an ongoing smooth scrolling on a subframe with an instant scrolling]
expected: FAIL
[Make sure the page is ready for animation.]
expected: FAIL